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

Clean up prefix hierarchy annotation

This commit is contained in:
Jeremy Stretch
2020-12-18 15:43:15 -05:00
parent 442dee72b5
commit 1e5778e6db
2 changed files with 13 additions and 7 deletions

View File

@@ -208,6 +208,14 @@ def split(string, sep=','):
return string.split(sep)
@register.filter()
def as_range(n):
"""
Return a range of n items.
"""
return range(n)
#
# Tags
#