diff options
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 |
commit | 4a0d4689fe4ff69f4730238bcae6dc36259e00b1 (patch) | |
tree | 2a55e1cde01156709ae05b26207a7dd2be52314d | |
parent | 4c536f2af8de89159168b1ec746c7f2c8db942ec (diff) | |
download | Ishtar-4a0d4689fe4ff69f4730238bcae6dc36259e00b1.tar.bz2 Ishtar-4a0d4689fe4ff69f4730238bcae6dc36259e00b1.zip |
Fix material type id display
-rw-r--r-- | archaeological_finds/models.py | 2 |
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) |