From 8bfa936361ec6840099cc5d90984c86f3074909a Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Wed, 29 Sep 2021 14:15:12 +0200 Subject: [PATCH] fix delete etud --- app/auth/models.py | 2 +- app/views/scolar.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/auth/models.py b/app/auth/models.py index 3a994e959..ed20d5eeb 100644 --- a/app/auth/models.py +++ b/app/auth/models.py @@ -422,7 +422,7 @@ class UserRole(db.Model): def get_super_admin(): - """L'utilisateur admin (où le premier, s'il y en a plusieurs). + """L'utilisateur admin (ou le premier, s'il y en a plusieurs). Utilisé par les tests unitaires et le script de migration. """ admin_role = Role.query.filter_by(name="SuperAdmin").first() diff --git a/app/views/scolar.py b/app/views/scolar.py index 9dffed327..6750ddf4e 100644 --- a/app/views/scolar.py +++ b/app/views/scolar.py @@ -1589,6 +1589,7 @@ def etudident_delete(etudid, dialog_confirmed=False): "admissions", "adresse", "absences", + "absences_notifications", "billet_absence", ] cursor = cnx.cursor(cursor_factory=ndb.ScoDocCursor)