Commit afdb08b9 authored by erdnaxe's avatar erdnaxe 🎇

Fix createsuperuser

parent b541f702
Pipeline #1391 failed with stage
in 3 minutes and 6 seconds
......@@ -135,6 +135,8 @@ class User(AbstractBaseUser):
""" Make User admin """
user_admin_right = Right(user=self, right=self.get_admin_right())
user_admin_right.save()
self.is_staff = True
self.save()
def un_admin(self):
try:
......
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