forked from ScoDoc/ScoDoc
fix delete etud
This commit is contained in:
parent
dffb369bb0
commit
8bfa936361
@ -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()
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user