mirror of
https://gitlab.crans.org/mediatek/med.git
synced 2024-11-26 20:47:10 +00:00
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
Block a user