diff options
author | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-04-03 18:02:02 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-04-03 18:02:02 +0200 |
commit | 3d8415cf0c60871b6354f28f80eb0642246ea471 (patch) | |
tree | 3b319bbd67c031a3710ad925b21b563e9b2aa7b3 /archaeological_operations/models.py | |
parent | bc002a96942499c89e9665dae0e51cc9e43a7117 (diff) | |
download | Ishtar-3d8415cf0c60871b6354f28f80eb0642246ea471.tar.bz2 Ishtar-3d8415cf0c60871b6354f28f80eb0642246ea471.zip |
OPE: search OPE by PATRIARCHE code (refs #430)
Diffstat (limited to 'archaeological_operations/models.py')
-rw-r--r-- | archaeological_operations/models.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py index 399b536e2..675666dbb 100644 --- a/archaeological_operations/models.py +++ b/archaeological_operations/models.py @@ -163,6 +163,7 @@ class Operation(BaseHistorizedItem, OwnPerms): def year_index(self): if not self.operation_code: return "" + lbl = unicode(self.operation_code) lbl = u"%d-%s%s" % (self.year, (3-len(lbl))*"0", lbl) return lbl |