Pass search_string to search_field.html
Django CI/CD / test (push) Successful in 1m10s Details
Django CI/CD / build-and-push (push) Successful in 2m1s Details

This commit is contained in:
Lukáš Kucharczyk 2024-11-10 00:05:33 +01:00
parent a53818257c
commit f61cde180f
1 changed files with 5 additions and 1 deletions

View File

@ -70,7 +70,11 @@ def list_sessions(request: HttpRequest, search_string: str = "") -> HttpResponse
Form( Form(
children=[ children=[
render_to_string( render_to_string(
"cotton/search_field.html", {"id": "search_string"} "cotton/search_field.html",
{
"id": "search_string",
"search_string": search_string,
},
) )
] ]
), ),