summaryrefslogtreecommitdiff
path: root/archaeological_context_records/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2016-10-28 20:26:31 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2016-10-28 20:26:31 +0200
commitf296333a87085ee0e04a0f4fbfc207c112f17bce (patch)
tree3652f3dcb6991a052ec6a1c9ec2e89f0038a5cd0 /archaeological_context_records/models.py
parent328de388cf7c8cd213752c01dfadc2a19e8acb6f (diff)
downloadIshtar-f296333a87085ee0e04a0f4fbfc207c112f17bce.tar.bz2
Ishtar-f296333a87085ee0e04a0f4fbfc207c112f17bce.zip
Force regeneration of cached labels when add M2M or changing ids
Diffstat (limited to 'archaeological_context_records/models.py')
-rw-r--r--archaeological_context_records/models.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/archaeological_context_records/models.py b/archaeological_context_records/models.py
index 7df766f2f..3f4dc1598 100644
--- a/archaeological_context_records/models.py
+++ b/archaeological_context_records/models.py
@@ -364,6 +364,7 @@ class ContextRecord(BaseHistorizedItem, ImageModel, OwnPerms, ShortMenuItem):
self.auto_external_id = True
self.external_id = external_id
if updated:
+ self._cached_label_checked = False
self.save()
return returned