Add default parameters to search homepage
This commit is contained in:
parent
f1cb539ca6
commit
4bc97dcc4d
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue