summaryrefslogtreecommitdiff
path: root/archaeological_operations/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_operations/models.py')
-rw-r--r--archaeological_operations/models.py3
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',
]