mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-28 11:26:26 -06:00
Fix test failure
This commit is contained in:
parent
5f69666b7b
commit
06c1aff04f
@ -162,7 +162,7 @@ class ObjectListView(BaseMultiObjectView, ActionsMixin, TableMixin):
|
||||
|
||||
# Check for filterset_form on this view, if a form exists, apply to context and table, otherwise set to None
|
||||
filterset_form = None
|
||||
if request and hasattr(self, 'filterset_form'):
|
||||
if hasattr(self, 'filterset_form') and self.filterset_form:
|
||||
filterset_form = self.filterset_form(request.GET, label_suffix='')
|
||||
table.filterset_form = filterset_form
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user