mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-22 20:12:00 -06:00
Remove unused getlist and getkey filters
This commit is contained in:
parent
22246353e2
commit
0439be2870
@ -31,22 +31,6 @@ def placeholder(value):
|
||||
return mark_safe(placeholder)
|
||||
|
||||
|
||||
@register.filter()
|
||||
def getlist(value, arg):
|
||||
"""
|
||||
Return all values of a QueryDict key
|
||||
"""
|
||||
return value.getlist(arg)
|
||||
|
||||
|
||||
@register.filter
|
||||
def getkey(value, key):
|
||||
"""
|
||||
Return a dictionary item specified by key
|
||||
"""
|
||||
return value[key]
|
||||
|
||||
|
||||
# TODO: Rename this filter as py-gfm is no longer in use
|
||||
@register.filter(is_safe=True)
|
||||
def gfm(value):
|
||||
|
Loading…
Reference in New Issue
Block a user