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 | c909dc8902c4fe51394982146c133eaa85c277a0 (patch) | |
tree | 803e5d2cfbf1ba8e4b4dc818027c83d8ce81516b /archaeological_context_records | |
parent | 20a9a040b572911462817806ec38d19e1a6b7e13 (diff) | |
download | Ishtar-c909dc8902c4fe51394982146c133eaa85c277a0.tar.bz2 Ishtar-c909dc8902c4fe51394982146c133eaa85c277a0.zip |
Fix null -> "" errors - fix tests
Diffstat (limited to 'archaeological_context_records')
-rw-r--r-- | archaeological_context_records/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/archaeological_context_records/models.py b/archaeological_context_records/models.py index 56dc66340..ff5f937e3 100644 --- a/archaeological_context_records/models.py +++ b/archaeological_context_records/models.py @@ -180,7 +180,7 @@ class Dating(models.Model): res = {} for key in value: val = value[key] - if val == '': + if val == '' and key != "precise_dating": val = None elif key in ("period", "dating_type", "quality"): field = cls._meta.get_field(key) |