Fix regression: modif etudiant / changement photo

This commit is contained in:
Emmanuel Viennet 2023-05-29 18:23:32 +02:00 committed by iziram
parent af1e46ba82
commit f6399bfc28
2 changed files with 2 additions and 2 deletions

View File

@ -224,7 +224,7 @@ class Identite(db.Model):
}
args_dict = {}
for key, value in args.items():
if hasattr(cls, key):
if hasattr(cls, key) and not isinstance(getattr(cls, key, None), property):
# compat scodoc7 (mauvaise idée de l'époque)
if key in fs_empty_stored_as_nulls and value == "":
value = None

View File

@ -1,7 +1,7 @@
# -*- mode: python -*-
# -*- coding: utf-8 -*-
SCOVERSION = "9.4.77"
SCOVERSION = "9.4.78"
SCONAME = "ScoDoc"