Add default parameters to search homepage

This commit is contained in:
Mark Veidemanis 2022-09-07 07:20:30 +01:00
parent f1cb539ca6
commit 4bc97dcc4d
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 3 additions and 1 deletions

View File

@ -120,7 +120,9 @@ def drilldown_search(request, return_context=False, template=None):
query_params = request.POST.dict() query_params = request.POST.dict()
else: else:
template_name = "ui/drilldown/drilldown.html" 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) return render(request, template_name, context)
tmp_post = request.POST.dict() tmp_post = request.POST.dict()