diff options
| author | Étienne Loks <etienne.loks@proxience.com> | 2013-03-13 10:52:31 +0000 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@proxience.com> | 2013-03-13 10:52:31 +0000 |
| commit | 3583bb854ddf6108fa725aa50d075db48652bf0e (patch) | |
| tree | 627361e11d145b7477cd64557a58032e5f6df478 /archaeological_operations/models.py | |
| parent | ad3c2ea7b5a68545669d9a7c0d63dec8980e2109 (diff) | |
| parent | 2266775ccf26574da6cdd5fc5d514bb999a3f912 (diff) | |
| download | Ishtar-3583bb854ddf6108fa725aa50d075db48652bf0e.tar.bz2 Ishtar-3583bb854ddf6108fa725aa50d075db48652bf0e.zip | |
Merge branch 'master' of lysithea.proxience.net:/home/proxience/git/ishtar
Diffstat (limited to 'archaeological_operations/models.py')
| -rw-r--r-- | archaeological_operations/models.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py index a0b751802..399b536e2 100644 --- a/archaeological_operations/models.py +++ b/archaeological_operations/models.py @@ -161,7 +161,8 @@ class Operation(BaseHistorizedItem, OwnPerms): year_index_lbl = _(u"Operation code") @property def year_index(self): - lbl = unicode(self.operation_code) + if not self.operation_code: + return "" lbl = u"%d-%s%s" % (self.year, (3-len(lbl))*"0", lbl) return lbl |
