Rename swap variable back and remove join

This commit is contained in:
Daniel Sheppard 2024-04-25 13:04:37 -05:00
parent 5830ae9e9a
commit fd38255d31
2 changed files with 4 additions and 5 deletions

View File

@ -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 = {

View File

@ -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' %}