summaryrefslogtreecommitdiff
path: root/archaeological_finds/models_finds.py
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_finds/models_finds.py')
-rw-r--r--archaeological_finds/models_finds.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/archaeological_finds/models_finds.py b/archaeological_finds/models_finds.py
index 53a1e3eef..7da45166e 100644
--- a/archaeological_finds/models_finds.py
+++ b/archaeological_finds/models_finds.py
@@ -47,7 +47,6 @@ from ishtar_common.models import (
BaseHistorizedItem,
Basket,
BiographicalNote,
- BulkUpdatedItem,
CompleteIdentifierItem,
Document,
DocumentItem,
@@ -531,7 +530,6 @@ class BFBulkView(object):
class BaseFind(
- BulkUpdatedItem,
BaseHistorizedItem,
GeographicSubTownItem,
CompleteIdentifierItem,
@@ -879,6 +877,11 @@ class BaseFind(
def post_save_basefind(sender, **kwargs):
cached_label_changed(sender, **kwargs)
post_save_geo(sender, **kwargs)
+ instance = kwargs.get("instance", None)
+ if not instance or not instance.pk:
+ return
+ for f in instance.find.all():
+ cached_label_changed(Find, instance=f)
def pre_delete_basefind(sender, **kwargs):
@@ -1078,7 +1081,6 @@ def query_loan(is_true=True):
class Find(
- BulkUpdatedItem,
ValueGetter,
DocumentItem,
BaseHistorizedItem,