diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-06-13 13:04:16 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-06-13 13:04:16 +0200 |
commit | 04be2c3f89867d2b8ae21ccb475066016bac487d (patch) | |
tree | 4ae4ae5c72d4391836ed1d346999e38aa4d48509 /archaeological_finds/models_finds.py | |
parent | 99b70dd1e0724e08e55d99185407caada9ab5eaf (diff) | |
download | Ishtar-04be2c3f89867d2b8ae21ccb475066016bac487d.tar.bz2 Ishtar-04be2c3f89867d2b8ae21ccb475066016bac487d.zip |
OA code is now a string.
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]) |