summaryrefslogtreecommitdiff
path: root/archaeological_finds
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2020-03-06 14:03:21 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2020-03-06 14:03:21 +0100
commitc53bece45d42f88e44bceaa46c863d7ea77771a6 (patch)
treed1863203965924a8eeb69110f32c231fde81d2b2 /archaeological_finds
parentef0f09ef1b2a44940d4a69029b5ce256e538b733 (diff)
downloadIshtar-c53bece45d42f88e44bceaa46c863d7ea77771a6.tar.bz2
Ishtar-c53bece45d42f88e44bceaa46c863d7ea77771a6.zip
Fix find duplicate
Diffstat (limited to 'archaeological_finds')
-rw-r--r--archaeological_finds/models_finds.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/archaeological_finds/models_finds.py b/archaeological_finds/models_finds.py
index 209682785..ad5c803fa 100644
--- a/archaeological_finds/models_finds.py
+++ b/archaeological_finds/models_finds.py
@@ -1997,6 +1997,7 @@ class Find(BulkUpdatedItem, ValueGetter, DocumentItem, BaseHistorizedItem,
if not duplicate_for_treatment and (
new.upstream_treatment or new.downstream_treatment):
new.upstream_treatment, new.downstream_treatment = None, None
+ new.uuid = uuid.uuid4()
new.save()
# m2m fields