Skip to content

Commit

Permalink
fix permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
KonstantinRaikhert committed Sep 6, 2023
1 parent b859fbd commit 342fe7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bot_settings/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def has_delete_permission(self, request, obj=None):
return False

def has_add_permission(self, request, obj=None):
"""Disable delete permission for BotSettings model."""
"""Disable add permission for BotSettings model."""
return False

@admin.display(description="Название настройки")
Expand Down

0 comments on commit 342fe7e

Please sign in to comment.