diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-06-14 00:13:06 +0200 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-06-14 00:13:06 +0200 |
| commit | ee8ac4b2737d009d858360395b32b8277d4c6c3b (patch) | |
| tree | 7c63d3f2e21b29c79d4c2dc6bedf91f8a64618b4 /archaeological_finds/models_finds.py | |
| parent | 9f7e16bc051d7ae8967520c6a4ccaed00ae9cb4c (diff) | |
| parent | 9fe30e305e1a114277e8473df415588bfacd188d (diff) | |
| download | Ishtar-ee8ac4b2737d009d858360395b32b8277d4c6c3b.tar.bz2 Ishtar-ee8ac4b2737d009d858360395b32b8277d4c6c3b.zip | |
Merge branch 'v0.9' into wheezy
Diffstat (limited to 'archaeological_finds/models_finds.py')
| -rw-r--r-- | archaeological_finds/models_finds.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/archaeological_finds/models_finds.py b/archaeological_finds/models_finds.py index 9a993ad37..4fea6edd3 100644 --- a/archaeological_finds/models_finds.py +++ b/archaeological_finds/models_finds.py @@ -246,7 +246,7 @@ class BaseFind(BaseHistorizedItem, OwnPerms): c_id = [] if ope.code_patriarche: c_id.append(settings.ISHTAR_OPE_PREFIX + - unicode(ope.code_patriarche)) + ope.code_patriarche) elif ope.year and ope.operation_code: c_id.append( settings.ISHTAR_DEF_OPE_PREFIX + @@ -293,8 +293,8 @@ class BaseFind(BaseHistorizedItem, OwnPerms): find = self.get_last_find() finds = [find and find.material_type.code or ''] ope = self.context_record.operation - finds += [unicode(ope.code_patriarche) or - (unicode(ope.year) + "-" + unicode(ope.operation_code))] + finds += [ope.code_patriarche or + (unicode(ope.year) + "-" + ope.operation_code)] finds += [self.context_record.label, unicode(self.material_index)] return settings.JOINT.join(finds) @@ -306,7 +306,7 @@ class BaseFind(BaseHistorizedItem, OwnPerms): find = self.get_last_find() lbl = find.label or self.label return settings.JOINT.join( - [unicode(it) for it in ( + [it for it in ( self.context_record.operation.code_patriarche, self.context_record.label, lbl) if it]) |
