summaryrefslogtreecommitdiff
path: root/archaeological_finds/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_finds/models.py')
-rw-r--r--archaeological_finds/models.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/archaeological_finds/models.py b/archaeological_finds/models.py
index 4d44e67fd..c7ed9083e 100644
--- a/archaeological_finds/models.py
+++ b/archaeological_finds/models.py
@@ -72,11 +72,11 @@ class BaseFind(BaseHistorizedItem, OwnPerms):
return finds and finds[0]
def full_label(self):
- return self._real_label() or self._temp_label()
+ return self._real_label() or self._temp_label() or u""
def material_type_label(self):
find = self.get_last_find()
- finds = [find and unicode(find.material_type) or '']
+ finds = [find and find.material_type.code or '']
ope = self.context_record.operation
finds += [ope.code_patriarche or \
(unicode(ope.year) + "-" + unicode(ope.operation_code))]