We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9de8900 commit 8fa1014Copy full SHA for 8fa1014
1 file changed
api/views.py
@@ -133,7 +133,7 @@ def pre_save(self, obj):
133
obj.set_password(obj.password)
134
# Make this first signup an admin / superuser
135
if not User.objects.filter(is_superuser=True).exists():
136
- obj.is_superuser = True
+ obj.is_superuser = obj.is_staff = True
137
138
139
class UserCancellationView(viewsets.GenericViewSet,
0 commit comments