summaryrefslogtreecommitdiff
path: root/archaeological_operations/models.py
diff options
context:
space:
mode:
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
commit173db6ad38f8286db3953e5965af37b0f2d953c4 (patch)
tree803e5d2cfbf1ba8e4b4dc818027c83d8ce81516b /archaeological_operations/models.py
parent99b583ae953b71840f986f26f827f55d445594a4 (diff)
downloadIshtar-173db6ad38f8286db3953e5965af37b0f2d953c4.tar.bz2
Ishtar-173db6ad38f8286db3953e5965af37b0f2d953c4.zip
Fix null -> "" errors - fix tests
Diffstat (limited to 'archaeological_operations/models.py')
-rw-r--r--archaeological_operations/models.py2
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