diff --git a/core/templatetags/url_extra.py b/core/templatetags/url_extra.py deleted file mode 100644 index 2ce4664c3..000000000 --- a/core/templatetags/url_extra.py +++ /dev/null @@ -1,16 +0,0 @@ -from django import template -from django.urls import reverse -from django.utils.safestring import mark_safe - -register = template.Library() - - -@register.simple_tag(takes_context=True) -def url_keep_qs(context, view_name, *args, **kwargs): - url = reverse(view_name, args=args, kwargs=kwargs) - request = context.get("request") - if request.GET: - querystring = request.GET.urlencode() - url = f"{url}?{querystring}" - - return mark_safe(url)