summaryrefslogtreecommitdiff
path: root/saleor/product/templatetags/sort_by.py
diff options
context:
space:
mode:
Diffstat (limited to 'saleor/product/templatetags/sort_by.py')
-rw-r--r--saleor/product/templatetags/sort_by.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/saleor/product/templatetags/sort_by.py b/saleor/product/templatetags/sort_by.py
deleted file mode 100644
index 58395c07..00000000
--- a/saleor/product/templatetags/sort_by.py
+++ /dev/null
@@ -1,11 +0,0 @@
-from django import template
-
-register = template.Library()
-
-
-@register.inclusion_tag('category/_sort_by.html', takes_context=True)
-def sort_by(context, attribute):
- return {'request': context['request'],
- 'label': attribute['label'],
- 'ascending_attribute': attribute['value'],
- 'descending_attribute': '-' + str(attribute['value'])}