diff options
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 |
commit | 5a325c41f7e87a167f3b7e26cb828852480f1af5 (patch) | |
tree | d1863203965924a8eeb69110f32c231fde81d2b2 /archaeological_finds | |
parent | f8d3d8017e031520024d7e3ff069a57638131867 (diff) | |
download | Ishtar-5a325c41f7e87a167f3b7e26cb828852480f1af5.tar.bz2 Ishtar-5a325c41f7e87a167f3b7e26cb828852480f1af5.zip |
Fix find duplicate
Diffstat (limited to 'archaeological_finds')
-rw-r--r-- | archaeological_finds/models_finds.py | 1 |
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 |