diff --git a/InvenTree/InvenTree/context.py b/InvenTree/InvenTree/context.py index 85a320afb4..3e1f98ffc2 100644 --- a/InvenTree/InvenTree/context.py +++ b/InvenTree/InvenTree/context.py @@ -10,8 +10,6 @@ from InvenTree.status_codes import StockHistoryCode import InvenTree.status -import common.models - from users.models import RuleSet diff --git a/InvenTree/common/models.py b/InvenTree/common/models.py index d7152ac6ef..cf5e44595a 100644 --- a/InvenTree/common/models.py +++ b/InvenTree/common/models.py @@ -20,7 +20,6 @@ from djmoney.contrib.exchange.models import convert_money from djmoney.contrib.exchange.exceptions import MissingRate from django.utils.translation import ugettext_lazy as _ -from django.utils.html import format_html from django.core.validators import MinValueValidator, URLValidator from django.core.exceptions import ValidationError diff --git a/InvenTree/part/templatetags/inventree_extras.py b/InvenTree/part/templatetags/inventree_extras.py index f36746e7a2..3b88deb504 100644 --- a/InvenTree/part/templatetags/inventree_extras.py +++ b/InvenTree/part/templatetags/inventree_extras.py @@ -282,6 +282,7 @@ def primitive_to_javascript(primitive): # Wrap with quotes return format_html("'{}'", primitive) + @register.filter def keyvalue(dict, key): """