mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Rename swap variable back and remove join
This commit is contained in:
@ -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 = {
|
||||
|
@ -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' %}
|
||||
|
Reference in New Issue
Block a user