Explorar o código

Remove unused contains filter

Jeremy Stretch %!s(int64=6) %!d(string=hai) anos
pai
achega
1069ad21d8
Modificáronse 1 ficheiros con 0 adicións e 8 borrados
  1. 0 8
      netbox/utilities/templatetags/helpers.py

+ 0 - 8
netbox/utilities/templatetags/helpers.py

@@ -92,14 +92,6 @@ def url_name(model, action):
         return None
 
 
-@register.filter()
-def contains(value, arg):
-    """
-    Test whether a value contains any of a given set of strings. `arg` should be a comma-separated list of strings.
-    """
-    return any(s in value for s in arg.split(','))
-
-
 @register.filter()
 def bettertitle(value):
     """