Make edit_session use the same template as add_session
Django CI/CD / test (push) Successful in 34s
Django CI/CD / build-and-push (push) Successful in 1m36s

This commit is contained in:
2026-05-06 10:43:57 +02:00
parent 596d1ccfe1
commit a549050860
+2 -1
View File
@@ -222,8 +222,9 @@ def edit_session(request: HttpRequest, session_id: int) -> HttpResponse:
form.save()
return redirect("list_sessions")
context["title"] = "Edit Session"
context["script_name"] = "add_session.js"
context["form"] = form
return render(request, "add.html", context)
return render(request, "add_session.html", context)
def clone_session_by_id(session_id: int) -> Session: