From b26c5d282fe1e0972dcced4d2a81e48f506c1698 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Wed, 8 Jan 2014 09:12:44 +0000 Subject: [PATCH] fix sort by description in item view --- pandora/document/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora/document/views.py b/pandora/document/views.py index 19095465d..1b6287c18 100644 --- a/pandora/document/views.py +++ b/pandora/document/views.py @@ -85,7 +85,7 @@ def _order_query(qs, sort, item=None): operator = '' key = { 'name': 'name_sort', - 'description': 'items__itemproperties__description_sort' + 'description': 'descriptions__description_sort' if item else 'description_sort', 'dimensions': 'dimensions_sort', 'index': 'items__itemproperties__index',