mirror of
https://gitlab.crans.org/mediatek/med.git
synced 2024-11-26 23:27:09 +00:00
Fix createsuperuser
This commit is contained in:
parent
b541f7025c
commit
afdb08b926
@ -135,6 +135,8 @@ class User(AbstractBaseUser):
|
|||||||
""" Make User admin """
|
""" Make User admin """
|
||||||
user_admin_right = Right(user=self, right=self.get_admin_right())
|
user_admin_right = Right(user=self, right=self.get_admin_right())
|
||||||
user_admin_right.save()
|
user_admin_right.save()
|
||||||
|
self.is_staff = True
|
||||||
|
self.save()
|
||||||
|
|
||||||
def un_admin(self):
|
def un_admin(self):
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user