mirror of
https://git.v0id.ovh/n3wt-innov/n3wt-school.git
synced 2026-01-29 07:53:23 +00:00
refactor: Création de composants et uniformisation des modales (#2)
This commit is contained in:
@ -4,3 +4,8 @@ from django.apps import AppConfig
|
||||
class GestionenseignantsConfig(AppConfig):
|
||||
default_auto_field = 'django.db.models.BigAutoField'
|
||||
name = 'GestionEnseignants'
|
||||
|
||||
def ready(self):
|
||||
from .models import Specialite
|
||||
if not Specialite.objects.filter(nom='TRANSVERSE').exists():
|
||||
Specialite.objects.create(nom='TRANSVERSE', codeCouleur='#FF0000')
|
||||
|
||||
@ -7,8 +7,8 @@ class Profil(AbstractUser):
|
||||
class Droits(models.IntegerChoices):
|
||||
PROFIL_UNDEFINED = -1, _('NON DEFINI')
|
||||
PROFIL_ECOLE = 0, _('ECOLE')
|
||||
PROFIL_PARENT = 1, _('PARENT')
|
||||
PROFIL_ADMIN = 2, _('ADMIN')
|
||||
PROFIL_ADMIN = 1, _('ADMIN')
|
||||
PROFIL_PARENT = 2, _('PARENT')
|
||||
|
||||
email = models.EmailField(max_length=255, unique=True, default="", validators=[EmailValidator()])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user