1
0
forked from ScoDoc/ScoDoc

fix delete etud

This commit is contained in:
Emmanuel Viennet 2021-09-29 14:15:12 +02:00
parent dffb369bb0
commit 8bfa936361
2 changed files with 2 additions and 1 deletions

View File

@ -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()

View File

@ -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)