change superuser to user with all perms

This commit is contained in:
2023-08-01 23:17:06 +00:00
parent 7abc6f1d0d
commit 59c546a035
9 changed files with 61 additions and 5 deletions

View File

@@ -2,6 +2,8 @@ from django.apps import AppConfig
from django.conf import settings
from django.db.models.signals import post_migrate
from fet2020.utils import create_perms
def update_default_site(sender, **kwargs):
from django.contrib.sites.models import Site
@@ -17,3 +19,4 @@ class CoreConfig(AppConfig):
def ready(self):
post_migrate.connect(update_default_site, sender=self)
post_migrate.connect(create_perms, sender=self)