1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Closes #5542: Show cable trace lengths in both meters and feet

This commit is contained in:
Jeremy Stretch
2021-01-20 21:29:23 -05:00
parent fefc623343
commit 5e962719ca
3 changed files with 11 additions and 1 deletions

View File

@@ -220,6 +220,14 @@ def as_range(n):
return range(n)
@register.filter()
def meters_to_feet(n):
"""
Convert a length from meters to feet.
"""
return float(n) * 3.28084
#
# Tags
#