1
0
forked from ScoDoc/ScoDoc

Fix regression: modif etudiant / changement photo

This commit is contained in:
Emmanuel Viennet 2023-05-29 18:23:32 +02:00
parent 753578813e
commit 1693bb6c6c
2 changed files with 2 additions and 2 deletions

View File

@ -220,7 +220,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"