From 38d8ebc05a7366c84655edae4c1b6c1cd063c4e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-S=C3=A9bastien=20Caux?= <git@jscaux.org> Date: Thu, 26 Jan 2023 22:26:58 +0100 Subject: [PATCH] Do the same for preassignent passed --- scipost_django/edadmin/views/preassignment.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scipost_django/edadmin/views/preassignment.py b/scipost_django/edadmin/views/preassignment.py index 5475234b8..a6e76cb2e 100644 --- a/scipost_django/edadmin/views/preassignment.py +++ b/scipost_django/edadmin/views/preassignment.py @@ -175,9 +175,9 @@ def _hx_submission_preassignment_decision(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( -- GitLab