Fix createsuperuser
This commit is contained in:
parent
b541f7025c
commit
afdb08b926
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue