Superusers should also be staff

This commit is contained in:
Tobias Kunze 2025-03-31 11:25:17 +02:00
parent 67f4b3ba12
commit 9c0bbdcf92

View file

@ -22,5 +22,6 @@ class Command(BaseCommand):
return return
user.is_superuser = True user.is_superuser = True
user.is_staff = True
user.save() user.save()
self.stdout.write(self.style.SUCCESS(f"{user} is now a superuser.")) self.stdout.write(self.style.SUCCESS(f"{user} is now a superuser."))