Bug fixing

This commit is contained in:
Oliver Walters 2020-10-25 21:45:37 +11:00
parent 7d95faa4f5
commit 9284837da8

View File

@ -6,7 +6,7 @@ import os
from django import template from django import template
from InvenTree import version, settings from InvenTree import version, settings
import InvenTree.helpers from InvenTree.helpers import decimal2string
from common.models import InvenTreeSetting, ColorTheme from common.models import InvenTreeSetting, ColorTheme
@ -17,7 +17,7 @@ register = template.Library()
def decimal(x, *args, **kwargs): def decimal(x, *args, **kwargs):
""" Simplified rendering of a decimal number """ """ Simplified rendering of a decimal number """
return InvenTree.helpers.decimal2string(x) return decimal2string(x)
@register.simple_tag() @register.simple_tag()