Fix partial swaps on table

This commit is contained in:
2022-12-02 07:20:37 +00:00
parent 32aa93a28e
commit 78b28b3994
4 changed files with 13 additions and 9 deletions

View File

@@ -115,6 +115,9 @@ class DrilldownTableView(SingleTableView):
self.template_name = "index.html"
# GET arguments in URL like ?query=xyz
query_params = request.GET.dict()
if request.htmx:
if request.resolver_match.url_name == "search_partial":
self.template_name = "partials/results_table.html"
elif request.POST:
query_params = request.POST.dict()
else: