SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit e5311ef3 authored by Jean-Sébastien Caux's avatar Jean-Sébastien Caux
Browse files

Simplify redirection after admission

parent a9d3f37f
No related branches found
No related tags found
No related merge requests found
......@@ -232,9 +232,9 @@ def _hx_submission_admission(request, identifier_w_vn_nr):
)
mail_util.send_mail()
submission.refresh_from_db()
# redirect to the edadmin page so that all is refreshed
response = HttpResponse()
response["HX-Redirect"] = reverse("submissions:pool:pool")
# trigger refresh of pool listing
response["HX-Trigger-After-Settle"] = "search-conditions-updated"
return response
context = {"submission": submission, "form": form,}
return render(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment