mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-27 10:58:37 -06:00
Update super() call for get_filters()
This commit is contained in:
parent
de6b26f8d7
commit
9b89b4a6ca
@ -210,9 +210,7 @@ class BaseFilterSet(django_filters.FilterSet):
|
|||||||
For specific filter types, new filters are created based on defined lookup expressions in
|
For specific filter types, new filters are created based on defined lookup expressions in
|
||||||
the form `<field_name>__<lookup_expr>`
|
the form `<field_name>__<lookup_expr>`
|
||||||
"""
|
"""
|
||||||
# TODO: once 3.6 is the minimum required version of python, change this to a bare super() call
|
filters = super().get_filters()
|
||||||
# We have to do it this way in py3.5 becuase of django_filters.FilterSet's use of a metaclass
|
|
||||||
filters = super(django_filters.FilterSet, cls).get_filters()
|
|
||||||
|
|
||||||
new_filters = {}
|
new_filters = {}
|
||||||
for existing_filter_name, existing_filter in filters.items():
|
for existing_filter_name, existing_filter in filters.items():
|
||||||
|
Loading…
Reference in New Issue
Block a user