mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-23 17:08:41 -06:00
#9231 add comment
This commit is contained in:
parent
2fe620df70
commit
48a907ae45
@ -81,6 +81,9 @@ class BaseFilterSet(django_filters.FilterSet):
|
|||||||
})
|
})
|
||||||
|
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
|
# bit of a hack for #9231 - extras.lookup.Empty is registered in apps.ready
|
||||||
|
# however FilterSet Factory is setup before this which creates the
|
||||||
|
# initial filters. This recreates the filters so Empty is picked up correctly.
|
||||||
self.base_filters = self.__class__.get_filters()
|
self.base_filters = self.__class__.get_filters()
|
||||||
super().__init__(*args, **kwargs)
|
super().__init__(*args, **kwargs)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user