mirror of
https://git.v0id.ovh/n3wt-innov/n3wt-school.git
synced 2026-01-29 07:53:23 +00:00
12 lines
377 B
Python
12 lines
377 B
Python
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')
|