mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Bug fixing
This commit is contained in:
parent
7d95faa4f5
commit
9284837da8
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user