diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2020-12-15 18:37:26 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2021-02-28 12:15:22 +0100 |
commit | 173db6ad38f8286db3953e5965af37b0f2d953c4 (patch) | |
tree | 803e5d2cfbf1ba8e4b4dc818027c83d8ce81516b /archaeological_finds/models_finds.py | |
parent | 99b583ae953b71840f986f26f827f55d445594a4 (diff) | |
download | Ishtar-173db6ad38f8286db3953e5965af37b0f2d953c4.tar.bz2 Ishtar-173db6ad38f8286db3953e5965af37b0f2d953c4.zip |
Fix null -> "" errors - fix tests
Diffstat (limited to 'archaeological_finds/models_finds.py')
-rw-r--r-- | archaeological_finds/models_finds.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/archaeological_finds/models_finds.py b/archaeological_finds/models_finds.py index 5bb06fd24..207f5fe70 100644 --- a/archaeological_finds/models_finds.py +++ b/archaeological_finds/models_finds.py @@ -2094,7 +2094,7 @@ class Find(BulkUpdatedItem, ValueGetter, DocumentItem, BaseHistorizedItem, new.base_finds.clear() if bf: new.base_finds.add(bf.duplicate( - user=user, data={"label": new.label, "external_id": None})) + user=user, data={"label": new.label, "external_id": ''})) # remove documents for this kind of duplicate (data entry) new.documents.clear() # remove associated treatments |