summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@peacefrogs.net>2013-07-17 22:52:15 +0200
committerÉtienne Loks <etienne.loks@peacefrogs.net>2013-07-17 22:52:15 +0200
commite6dcfceb823722a76e2aa007f6808ce481fd68ed (patch)
tree2a55e1cde01156709ae05b26207a7dd2be52314d
parentcf3c227017ee4709425e0205ec5a641139d2c156 (diff)
downloadIshtar-e6dcfceb823722a76e2aa007f6808ce481fd68ed.tar.bz2
Ishtar-e6dcfceb823722a76e2aa007f6808ce481fd68ed.zip
Fix material type id display
-rw-r--r--archaeological_finds/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/archaeological_finds/models.py b/archaeological_finds/models.py
index c7ed9083e..b559f6991 100644
--- a/archaeological_finds/models.py
+++ b/archaeological_finds/models.py
@@ -78,7 +78,7 @@ class BaseFind(BaseHistorizedItem, OwnPerms):
find = self.get_last_find()
finds = [find and find.material_type.code or '']
ope = self.context_record.operation
- finds += [ope.code_patriarche or \
+ finds += [unicode(ope.code_patriarche) or \
(unicode(ope.year) + "-" + unicode(ope.operation_code))]
finds += [self.context_record.label, unicode(self.material_index)]
return settings.JOINT.join(finds)