From f61cde180ff8d01cc18c9c2f6c146c412dd3ea3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Kucharczyk?= Date: Sun, 10 Nov 2024 00:05:33 +0100 Subject: [PATCH] Pass search_string to search_field.html --- games/views/session.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/games/views/session.py b/games/views/session.py index 0d55b73..0acd412 100644 --- a/games/views/session.py +++ b/games/views/session.py @@ -70,7 +70,11 @@ def list_sessions(request: HttpRequest, search_string: str = "") -> HttpResponse Form( children=[ render_to_string( - "cotton/search_field.html", {"id": "search_string"} + "cotton/search_field.html", + { + "id": "search_string", + "search_string": search_string, + }, ) ] ),