From fdb358ea89349de3e82fdd937dfdac2efb9ce4dc Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 14 Sep 2012 11:03:30 +0200 Subject: [PATCH] part might be int --- pandora/archive/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora/archive/models.py b/pandora/archive/models.py index 059e8a4a..9cd31a0c 100644 --- a/pandora/archive/models.py +++ b/pandora/archive/models.py @@ -172,8 +172,8 @@ class File(models.Model): data = self.get_path_info() self.extension = data.get('extension') self.language = data.get('language') - self.part = ox.sort_string(data.get('part') or '') - self.part_title = ox.sort_string(data.get('partTitle') or '') + self.part = ox.sort_string(unicode(data.get('part')) or '') + self.part_title = ox.sort_string(unicode(data.get('partTitle')) or '') self.type = data.get('type') or 'unknown' self.version = data.get('version')