Superusers should also be staff
This commit is contained in:
parent
67f4b3ba12
commit
9c0bbdcf92
1 changed files with 1 additions and 0 deletions
|
@ -22,5 +22,6 @@ class Command(BaseCommand):
|
|||
return
|
||||
|
||||
user.is_superuser = True
|
||||
user.is_staff = True
|
||||
user.save()
|
||||
self.stdout.write(self.style.SUCCESS(f"{user} is now a superuser."))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue