diff --git a/backend/accounts/views.py b/backend/accounts/views.py index 50f8acd..558e3e9 100644 --- a/backend/accounts/views.py +++ b/backend/accounts/views.py @@ -515,7 +515,7 @@ def post(self, request, format=None): content_type = ContentType.objects.get(app_label="accounts", model="user") perms = Permission.objects.filter( content_type=content_type, codename__endswith="_admin" - ) + ).exclude(codename="penn_clubs_admin") for perm in perms: perm.user_set.clear() User.objects.filter(Q(is_superuser=True) | Q(is_staff=True)).update(