Commit 84d809b6 authored by Mirko Vucicevich's avatar Mirko Vucicevich
Browse files

patch admin

parent 3e3edeaf
......@@ -176,7 +176,7 @@ class GroupAdmin(admin.ModelAdmin):
def has_change_permission(self, request, obj=None):
if obj is not None:
return obj.users.filter(id=request.user.id).exists()
return super().has_change_permission(self, request, obj)
return super().has_change_permission(request, obj)
prepopulated_fields = {"slug": ('name',)}
def get_queryset(self, request):
qs = super().get_queryset(request)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment