diff --git a/InvenTree/part/templatetags/inventree_extras.py b/InvenTree/part/templatetags/inventree_extras.py index 4cc219454b..38689df26b 100644 --- a/InvenTree/part/templatetags/inventree_extras.py +++ b/InvenTree/part/templatetags/inventree_extras.py @@ -11,7 +11,7 @@ from django.utils.translation import ugettext_lazy as _ from django.conf import settings as djangosettings from django import template -from django.urls import reverse, resolve as resolve_fnc +from django.urls import reverse from django.utils.safestring import mark_safe from django.templatetags.static import StaticNode from InvenTree import version, settings @@ -267,12 +267,6 @@ def object_link(url_name, pk, ref): return mark_safe('{}'.format(ref_url, ref)) -@register.simple_tag() -def resolve(url): - """provides access to resolve function in templates""" - return resolve_fnc(url) - - class I18nStaticNode(StaticNode): """ custom StaticNode diff --git a/InvenTree/stock/templates/stock/item_base.html b/InvenTree/stock/templates/stock/item_base.html index 9d9062212a..2eb7695498 100644 --- a/InvenTree/stock/templates/stock/item_base.html +++ b/InvenTree/stock/templates/stock/item_base.html @@ -248,15 +248,14 @@ {% trans "Serial Number" %} - {% resolve request.path as url_path %} {% if previous %} - + {{ previous.serial }} {% endif %} {{ item.serial }} {% if next %} - + {{ next.serial }} {% endif %}