From f27a6873258dd249c6220048d6491ea13691de62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-S=C3=A9bastien=20Caux?= <git@jscaux.org> Date: Tue, 7 Dec 2021 11:31:35 +0100 Subject: [PATCH] Restrict queryset in `editorial_assignment` --- scipost_django/submissions/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scipost_django/submissions/views.py b/scipost_django/submissions/views.py index d930d4de8..2ab310ca4 100644 --- a/scipost_django/submissions/views.py +++ b/scipost_django/submissions/views.py @@ -891,7 +891,7 @@ def submission_remove_topic(request, identifier_w_vn_nr, slug): @transaction.atomic def editorial_assignment(request, identifier_w_vn_nr, assignment_id=None): """Editorial Assignment form view.""" - submission = get_object_or_404(Submission.objects.pool_editable(request.user), + submission = get_object_or_404(Submission.objects.unassigned().pool_editable(request.user), preprint__identifier_w_vn_nr=identifier_w_vn_nr) # Check if Submission is still valid for a new assignment. -- GitLab