diff options
| 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 | 
| commit | f6a8df267c60af1a1dc8a60f9d7df5be1ccc3dc8 (patch) | |
| tree | 1c4b858ff1627d8c454b275f67c850400af959e5 /archaeological_operations/models.py | |
| parent | 4a16358e3a20658d040f8b5066a024969d3e1756 (diff) | |
| download | Ishtar-f6a8df267c60af1a1dc8a60f9d7df5be1ccc3dc8.tar.bz2 Ishtar-f6a8df267c60af1a1dc8a60f9d7df5be1ccc3dc8.zip | |
Fix code_patriarche check when an integer is provided
Diffstat (limited to 'archaeological_operations/models.py')
| -rw-r--r-- | archaeological_operations/models.py | 2 | 
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( | 
