diff options
| author | root <root@viserion.(none)> | 2013-03-13 10:52:31 +0000 |
|---|---|---|
| committer | root <root@viserion.(none)> | 2013-03-13 10:52:31 +0000 |
| commit | 8fd4d136edaaa624cad59f6346f982aaab535f56 (patch) | |
| tree | 627361e11d145b7477cd64557a58032e5f6df478 /archaeological_operations/models.py | |
| parent | ca1fe63ce7a1f8a3d908f43e98d5e8a3337b8ae0 (diff) | |
| parent | 86b2405dcf387ea1111a7868b9ec24caf712d168 (diff) | |
| download | Ishtar-8fd4d136edaaa624cad59f6346f982aaab535f56.tar.bz2 Ishtar-8fd4d136edaaa624cad59f6346f982aaab535f56.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 |
