refactor: Traduction en anglais des modules "GestionInscription" et

"GestionLogin"
This commit is contained in:
N3WT DE COMPET
2025-01-12 10:07:06 +01:00
parent 830d9a48c0
commit 2b414b8391
69 changed files with 1393 additions and 1551 deletions

View File

@ -2,7 +2,7 @@ from django.db.models.signals import post_save
from django.dispatch import receiver
from .models import Notification, TypeNotif
from GestionMessagerie.models import Messagerie
from GestionInscriptions.models import FicheInscription
from Subscriptions.models import RegistrationForm
@receiver(post_save, sender=Messagerie)
def notification_MESSAGE(sender, instance, created, **kwargs):
@ -13,11 +13,11 @@ def notification_MESSAGE(sender, instance, created, **kwargs):
typeNotification=TypeNotif.NOTIF_MESSAGE
)
@receiver(post_save, sender=FicheInscription)
@receiver(post_save, sender=RegistrationForm)
def notification_DI(sender, instance, created, **kwargs):
for responsable in instance.eleve.responsables.all():
for responsable in instance.student.guardians.all():
Notification.objects.create(
user=responsable.profilAssocie,
user=responsable.associated_profile,
message=(TypeNotif.NOTIF_DI).label,
typeNotification=TypeNotif.NOTIF_DI
)