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',