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_operations/models.py | |
parent | 20a9a040b572911462817806ec38d19e1a6b7e13 (diff) | |
download | Ishtar-c909dc8902c4fe51394982146c133eaa85c277a0.tar.bz2 Ishtar-c909dc8902c4fe51394982146c133eaa85c277a0.zip |
Fix null -> "" errors - fix tests
Diffstat (limited to 'archaeological_operations/models.py')
-rw-r--r-- | archaeological_operations/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py index f5bf540fa..61b815cb4 100644 --- a/archaeological_operations/models.py +++ b/archaeological_operations/models.py @@ -1762,7 +1762,7 @@ class Operation(ClosedItem, DocumentItem, BaseHistorizedItem, if self.operation_code is None: self.operation_code = self.get_available_operation_code(self.year) if hasattr(self, 'code_patriarche'): - self.code_patriarche = self.code_patriarche or None + self.code_patriarche = self.code_patriarche or "" item = super(Operation, self).save(*args, **kwargs) self.clean_parcel_duplicates() return item |