summaryrefslogtreecommitdiff
path: root/saleor/core/templatetags/shop.py
diff options
context:
space:
mode:
Diffstat (limited to 'saleor/core/templatetags/shop.py')
-rw-r--r--saleor/core/templatetags/shop.py13
1 files changed, 0 insertions, 13 deletions
diff --git a/saleor/core/templatetags/shop.py b/saleor/core/templatetags/shop.py
index 78273c64..598baa6e 100644
--- a/saleor/core/templatetags/shop.py
+++ b/saleor/core/templatetags/shop.py
@@ -7,7 +7,6 @@ except ImportError:
from django.template import Library
from django.utils.http import urlencode
-from ...product.filters import DEFAULT_SORT
register = Library()
@@ -28,15 +27,3 @@ def get_sort_by_url(context, field, descending=False):
else:
request_get['sort_by'] = field
return '%s?%s' % (request.path, urlencode(request_get))
-
-
-@register.inclusion_tag('category/_sort_by.html', takes_context=True)
-def sort_by(context, attributes):
- ctx = {
- 'request': context['request'],
- '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('-'))}
- return ctx