diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-06-28 14:50:12 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-06-28 14:50:12 +0200 |
commit | 3eee5bac1748181d41d7abc32da1570a1fce6645 (patch) | |
tree | 2f2f39dfb5c185d8e8857b2f87bbeff6065bb321 /archaeological_operations/models.py | |
parent | f1366d27a7ccfcd2745aa0854f217941f6b2198c (diff) | |
download | Ishtar-3eee5bac1748181d41d7abc32da1570a1fce6645.tar.bz2 Ishtar-3eee5bac1748181d41d7abc32da1570a1fce6645.zip |
Better management of cascade updates
Diffstat (limited to 'archaeological_operations/models.py')
-rw-r--r-- | archaeological_operations/models.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py index 55e90ec07..95c60e6ff 100644 --- a/archaeological_operations/models.py +++ b/archaeological_operations/models.py @@ -254,6 +254,7 @@ class ArchaeologicalSite(DocumentItem, BaseHistorizedItem, QRCodeItem, HISTORICAL_M2M = ['periods', 'remains', 'towns'] CACHED_LABELS = ['cached_label', 'cached_towns_label', 'cached_periods', 'cached_remains'] + DOWN_MODEL_UPDATE = ["context_records"] # objects = SiteManager() @@ -871,6 +872,8 @@ class Operation(ClosedItem, DocumentItem, BaseHistorizedItem, QRCodeItem, 'towns__numero_insee__startswith': '_get_department_code', } + DOWN_MODEL_UPDATE = ["context_record"] + HISTORICAL_M2M = [ 'remains', 'towns', 'periods', ] |