diff --git a/netbox/netbox/views/generic/bulk_views.py b/netbox/netbox/views/generic/bulk_views.py index c3b5d6f43..91d8dec94 100644 --- a/netbox/netbox/views/generic/bulk_views.py +++ b/netbox/netbox/views/generic/bulk_views.py @@ -181,14 +181,13 @@ class ObjectListView(BaseMultiObjectView, ActionsMixin, TableMixin): # Hide selection checkboxes if 'pk' in table.base_columns: table.columns.hide('pk') - oob_swaps = [] - oob_swaps.append(render_to_string('inc/applied_filters_pane.html', { + filter_chits = render_to_string('inc/applied_filters_pane.html', { 'model': model, 'filter_form': filterset_form, - }, request)) + }, request) return render(request, 'htmx/table.html', { 'table': table, - 'oob_swaps': "".join(oob_swaps), + 'filter_chits': filter_chits, }) context = { diff --git a/netbox/templates/htmx/table.html b/netbox/templates/htmx/table.html index 1c6c9a903..ce88db586 100644 --- a/netbox/templates/htmx/table.html +++ b/netbox/templates/htmx/table.html @@ -3,7 +3,7 @@ {% load render_table from django_tables2 %} {# OOB Swaps to update various components #} -{{ oob_swaps }} +{{ filter_chits }} {% with preferences|get_key:"pagination.placement" as paginator_placement %} {% if paginator_placement == 'top' or paginator_placement == 'both' %}