1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00
This commit is contained in:
jeremystretch
2021-10-15 12:24:07 -04:00
parent 075f4907ef
commit 717fd760df
7 changed files with 124 additions and 36 deletions

View File

@@ -157,7 +157,7 @@ def simplify_decimal(value):
"""
if type(value) is not decimal.Decimal:
return value
return str(value).rstrip('0.')
return str(value).rstrip('0').rstrip('.')
@register.filter()