Remove query in view response

This commit is contained in:
Joachim 2021-12-08 16:39:43 +01:00
parent a1f76fa208
commit 793ce4d33b

View file

@ -222,8 +222,6 @@ class EmbedList(View):
if list_key != embed_key: if list_key != embed_key:
raise Http404() raise Http404()
query = request.GET.get("q")
# sort_by shall be "order" unless a valid alternative is given # sort_by shall be "order" unless a valid alternative is given
sort_by = request.GET.get("sort_by", "order") sort_by = request.GET.get("sort_by", "order")
if sort_by not in ("order", "title", "rating"): if sort_by not in ("order", "title", "rating"):
@ -262,7 +260,6 @@ class EmbedList(View):
"page_range": paginated.get_elided_page_range( "page_range": paginated.get_elided_page_range(
page.number, on_each_side=2, on_ends=1 page.number, on_each_side=2, on_ends=1
), ),
"query": query or "",
} }
return TemplateResponse(request, "lists/embed-list.html", data) return TemplateResponse(request, "lists/embed-list.html", data)