From 4a0d4689fe4ff69f4730238bcae6dc36259e00b1 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 17 Jul 2013 22:52:15 +0200 Subject: Fix material type id display --- archaeological_finds/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3