From 1a6fb0a70ad9174116ecdd4aaf20be65440668ba Mon Sep 17 00:00:00 2001 From: jacquesfize Date: Fri, 20 Dec 2024 11:19:32 +0100 Subject: [PATCH] wip --- apptax/taxonomie/models.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apptax/taxonomie/models.py b/apptax/taxonomie/models.py index d0b244d5..aaffafe4 100644 --- a/apptax/taxonomie/models.py +++ b/apptax/taxonomie/models.py @@ -174,7 +174,11 @@ class Taxref(db.Model): status = db.relationship("VBdcStatus", order_by="VBdcStatus.lb_type_statut") synonymes = db.relationship( - "Taxref", foreign_keys=[cd_ref], primaryjoin="Taxref.cd_ref == Taxref.cd_ref", uselist=True + "Taxref", + foreign_keys=[cd_ref], + primaryjoin="Taxref.cd_ref == Taxref.cd_ref", + uselist=True, + post_update=True, ) parent = db.relationship("Taxref", primaryjoin=foreign(cd_sup) == remote(cd_ref)) attributs = db.relationship("CorTaxonAttribut", back_populates="taxon")