mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Replace expand/collpase with max mask length for prefixes list
This commit is contained in:
@@ -199,6 +199,14 @@ def has_perms(user, permissions_list):
|
||||
return user.has_perms(permissions_list)
|
||||
|
||||
|
||||
@register.filter()
|
||||
def split(string, sep=','):
|
||||
"""
|
||||
Split a string by the given value (default: comma)
|
||||
"""
|
||||
return string.split(sep)
|
||||
|
||||
|
||||
#
|
||||
# Tags
|
||||
#
|
||||
|
Reference in New Issue
Block a user