diff options
-rw-r--r-- | saleor/product/templatetags/sort_menu.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/saleor/product/templatetags/sort_menu.py b/saleor/product/templatetags/sort_menu.py index abccd555..d538f055 100644 --- a/saleor/product/templatetags/sort_menu.py +++ b/saleor/product/templatetags/sort_menu.py @@ -9,9 +9,9 @@ register = template.Library() def sort_menu(context, attributes): ctx = { 'request': context['request'], - 'sort_by': - context['request'].GET.get('sort_by', DEFAULT_SORT).strip('-'), + 'sort_by': (context['request'].GET.get('sort_by', DEFAULT_SORT) + .strip('-')), 'sort_by_choices': attributes, - 'arrow_down': - context['request'].GET.get('sort_by', DEFAULT_SORT).startswith('-')} + 'arrow_down': (context['request'].GET.get('sort_by', DEFAULT_SORT) + .startswith('-'))} return ctx |