Explorar o código

#9231 make empty search work

Arthur %!s(int64=3) %!d(string=hai) anos
pai
achega
536bd37d05
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      netbox/netbox/filtersets.py

+ 4 - 0
netbox/netbox/filtersets.py

@@ -80,6 +80,10 @@ class BaseFilterSet(django_filters.FilterSet):
         },
     })
 
+    def __init__(self, *args, **kwargs):
+        self.base_filters = self.get_filters()
+        super().__init__(*args, **kwargs)
+
     @staticmethod
     def _get_filter_lookup_dict(existing_filter):
         # Choose the lookup expression map based on the filter type