summaryrefslogtreecommitdiff
path: root/archaeological_context_records
diff options
context:
space:
mode:
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
commitc64fd6f05a767282972d9e51c3129993a4b90e1f (patch)
tree2f2f39dfb5c185d8e8857b2f87bbeff6065bb321 /archaeological_context_records
parent64da49c224d9c8b8271f81bfcc1328d5cc65f5d2 (diff)
downloadIshtar-c64fd6f05a767282972d9e51c3129993a4b90e1f.tar.bz2
Ishtar-c64fd6f05a767282972d9e51c3129993a4b90e1f.zip
Better management of cascade updates
Diffstat (limited to 'archaeological_context_records')
-rw-r--r--archaeological_context_records/migrations/0047_auto_20190628_1257.py25
-rw-r--r--archaeological_context_records/models.py1
2 files changed, 26 insertions, 0 deletions
diff --git a/archaeological_context_records/migrations/0047_auto_20190628_1257.py b/archaeological_context_records/migrations/0047_auto_20190628_1257.py
new file mode 100644
index 000000000..913eab154
--- /dev/null
+++ b/archaeological_context_records/migrations/0047_auto_20190628_1257.py
@@ -0,0 +1,25 @@
+# -*- coding: utf-8 -*-
+# Generated by Django 1.11.18 on 2019-06-28 12:57
+from __future__ import unicode_literals
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('archaeological_context_records', '0046_auto_20190528_1048'),
+ ]
+
+ operations = [
+ migrations.AddField(
+ model_name='contextrecord',
+ name='need_update',
+ field=models.BooleanField(default=False, verbose_name='Need update'),
+ ),
+ migrations.AddField(
+ model_name='historicalcontextrecord',
+ name='need_update',
+ field=models.BooleanField(default=False, verbose_name='Need update'),
+ ),
+ ]
diff --git a/archaeological_context_records/models.py b/archaeological_context_records/models.py
index ace66aed6..1b81f3b63 100644
--- a/archaeological_context_records/models.py
+++ b/archaeological_context_records/models.py
@@ -431,6 +431,7 @@ class ContextRecord(BulkUpdatedItem, DocumentItem, BaseHistorizedItem,
]
CACHED_LABELS = ['cached_label', 'cached_periods',
"cached_related_context_records"]
+ DOWN_MODEL_UPDATE = ["base_finds"]
history = HistoricalRecords(bases=[HistoryModel])
objects = ExternalIdManager()