Fix partial swaps on table
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user