mirror of
https://github.com/jazzband/django-constance.git
synced 2026-03-16 22:40:24 +00:00
Fix error: request into function
This commit is contained in:
parent
46d88815e7
commit
fb43e0f4d7
1 changed files with 1 additions and 1 deletions
|
|
@ -108,7 +108,7 @@ class ConstanceAdmin(admin.ModelAdmin):
|
|||
def has_delete_permission(self, *args, **kwargs):
|
||||
return False
|
||||
|
||||
def has_change_permission(self, *args, **kwargs):
|
||||
def has_change_permission(self, request, obj=None, *args, **kwargs):
|
||||
if request.user.is_superuser:
|
||||
return True
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in a new issue