From f1a68f92a0db853842cde03d54c7afbe94e4539c Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Thu, 1 Dec 2022 07:20:35 +0000 Subject: [PATCH] Also load results pane with errors on load --- core/templates/index.html | 2 +- core/views/ui/drilldown.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/core/templates/index.html b/core/templates/index.html index 3073d47..4c3e080 100644 --- a/core/templates/index.html +++ b/core/templates/index.html @@ -146,7 +146,7 @@ {% endblock %} {% block widgets %} - {% if table %} + {% if table or message is not None %} {% include 'partials/results_load.html' %} {% endif %} {% endblock %} \ No newline at end of file diff --git a/core/views/ui/drilldown.py b/core/views/ui/drilldown.py index 619fa51..a64cc38 100644 --- a/core/views/ui/drilldown.py +++ b/core/views/ui/drilldown.py @@ -287,6 +287,7 @@ class DrilldownTableView(SingleTableView): extra_params["tags"] = tags context = db.query_results(request, query_params, **extra_params) + # Unique is for identifying the widgets. # We don't want a random one since we only want one results pane. context["unique"] = "results"