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.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/archaeological_finds/models_finds.py b/archaeological_finds/models_finds.py
index fa38a6dbb..7fc27c7cc 100644
--- a/archaeological_finds/models_finds.py
+++ b/archaeological_finds/models_finds.py
@@ -886,13 +886,15 @@ class BaseFind(
def post_save_basefind(sender, **kwargs):
+ timestamp = int(datetime.datetime.now().timestamp())
+ kwargs["timestamp"] = timestamp
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)
+ cached_label_changed(Find, instance=f, timestamp=timestamp)
def pre_delete_basefind(sender, **kwargs):