From 1693bb6c6c0f92695775b93a2dc429d37b637166 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Mon, 29 May 2023 18:23:32 +0200 Subject: [PATCH] Fix regression: modif etudiant / changement photo --- app/models/etudiants.py | 2 +- sco_version.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/etudiants.py b/app/models/etudiants.py index 0f5f59c2..78b8db2b 100644 --- a/app/models/etudiants.py +++ b/app/models/etudiants.py @@ -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 diff --git a/sco_version.py b/sco_version.py index 071863e3..9f0f321e 100644 --- a/sco_version.py +++ b/sco_version.py @@ -1,7 +1,7 @@ # -*- mode: python -*- # -*- coding: utf-8 -*- -SCOVERSION = "9.4.77" +SCOVERSION = "9.4.78" SCONAME = "ScoDoc"