summaryrefslogtreecommitdiff
path: root/archaeological_operations
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2019-05-24 14:36:16 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2019-05-24 14:36:16 +0200
commitd51069cd3929dbdabc937dff9cec9eda9f739124 (patch)
tree1c4b858ff1627d8c454b275f67c850400af959e5 /archaeological_operations
parent7eec1cf5c2796c7b92f554f92a4fa4b9c9c63dd9 (diff)
downloadIshtar-d51069cd3929dbdabc937dff9cec9eda9f739124.tar.bz2
Ishtar-d51069cd3929dbdabc937dff9cec9eda9f739124.zip
Fix code_patriarche check when an integer is provided
Diffstat (limited to 'archaeological_operations')
-rw-r--r--archaeological_operations/models.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py
index 5ab7dffbc..996ede679 100644
--- a/archaeological_operations/models.py
+++ b/archaeological_operations/models.py
@@ -1054,6 +1054,8 @@ class Operation(ClosedItem, DocumentItem, BaseHistorizedItem, QRCodeItem,
def short_code_patriarche(self):
if not self.code_patriarche:
return u""
+ if isinstance(self.code_patriarche, int):
+ self.code_patriarche = str(self.code_patriarche)
profile = get_current_profile()
if not profile.operation_region_code or \
not self.code_patriarche.startswith(