From 4bc97dcc4dae08e0a9473ff7e0cd122171beef4b Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Wed, 7 Sep 2022 07:20:30 +0100 Subject: [PATCH] Add default parameters to search homepage --- core/views/ui/drilldown.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/views/ui/drilldown.py b/core/views/ui/drilldown.py index efa575b..7e1e324 100644 --- a/core/views/ui/drilldown.py +++ b/core/views/ui/drilldown.py @@ -120,7 +120,9 @@ def drilldown_search(request, return_context=False, template=None): query_params = request.POST.dict() else: template_name = "ui/drilldown/drilldown.html" - context = {"sizes": sizes, "unique": "results"} + params_with_defaults = {} + helpers.add_defaults(params_with_defaults) + context = {"sizes": sizes, "unique": "results", "params": params_with_defaults} return render(request, template_name, context) tmp_post = request.POST.dict()