From 38abce6033e446fd849bef6469daa34073453910 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Tue, 25 Oct 2011 09:31:26 +0200 Subject: [PATCH] really fix sort --- pandora/item/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora/item/models.py b/pandora/item/models.py index ec5b5ba1..7c7fb483 100644 --- a/pandora/item/models.py +++ b/pandora/item/models.py @@ -594,8 +594,8 @@ class Item(models.Model): continue source = key['value']['key'] sort_type = key['value'].get('type', sort_type) - if isinstance(sort_type, list): - sort_type = sort_type[0] + if isinstance(sort_type, list): + sort_type = sort_type[0] if name not in base_keys: if sort_type == 'title':