summaryrefslogtreecommitdiff
path: root/archaeological_operations/models.py
diff options
context:
space:
mode:
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
commitf6f70c2d270644a520c6f2f1bcf718839c5f489c (patch)
tree3b319bbd67c031a3710ad925b21b563e9b2aa7b3 /archaeological_operations/models.py
parentfd4df93e212477cd7bdaa8286f8081138673608e (diff)
downloadIshtar-f6f70c2d270644a520c6f2f1bcf718839c5f489c.tar.bz2
Ishtar-f6f70c2d270644a520c6f2f1bcf718839c5f489c.zip
OPE: search OPE by PATRIARCHE code (refs #430)
Diffstat (limited to 'archaeological_operations/models.py')
-rw-r--r--archaeological_operations/models.py1
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