From 6d6555e3bbbff72b00b40b3f50e7795c91e0c8bc Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Mon, 17 Sep 2012 13:25:30 +0200 Subject: [PATCH] dont special case id, fixes #602 --- pandora/item/views.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pandora/item/views.py b/pandora/item/views.py index fac981535..d4ea3e1d0 100644 --- a/pandora/item/views.py +++ b/pandora/item/views.py @@ -49,8 +49,7 @@ def _order_query(qs, sort, prefix='sort__'): key = { 'id': 'itemId', }.get(e['key'], e['key']) - if key not in ('itemId', ): - key = "%s%s" % (prefix, key) + key = "%s%s" % (prefix, key) order = '%s%s' % (operator, key) order_by.append(order) if order_by: