Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Remove legacy slice templatetag

Pacu288f7bcd4c9ab
diff --git a/saleor/core/templatetags/shop.py b/saleor/core/templatetags/shop.py
index e69cb40af8..472cf13162 100644
--- a/saleor/core/templatetags/shop.py
+++ b/saleor/core/templatetags/shop.py
@@ -7,13 +7,6 @@ from django.utils.http import urlencode
register = Library()
-def slice(items, group_size=1):
- args = [iter(items)] * group_size
- return (filter(None, group)
- for group in zip_longest(*args, fillvalue=None))
-
-
@register.simple_tag(takes_context=True)
def get_sort_by_url(context, field, descending=False):
request = context['request']
diff --git a/templates/search/results.html b/templates/search/results.html
index 56ed68917b..13f19020e0 100644
--- a/templates/search/results.html
+++ b/templates/search/results.html
@@ -1,6 +1,5 @@
{% extends "base.html" %}
{% load i18n %}
-{% load slice from shop %}
{% load staticfiles %}
{% load bootstrap_pagination from bootstrap3 %}