From 70f988a44fddf096f44ad40b3f1732b6e85f5e4f Mon Sep 17 00:00:00 2001 From: "Mees, T.D. (Ty)" Date: Thu, 1 Feb 2024 16:44:24 +0100 Subject: [PATCH] fix: prevent submission on back actions --- proposals/views/proposal_views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/proposals/views/proposal_views.py b/proposals/views/proposal_views.py index 93fc54440..23afcada4 100644 --- a/proposals/views/proposal_views.py +++ b/proposals/views/proposal_views.py @@ -481,7 +481,8 @@ def form_valid(self, form): # Checks for practice proposals and starting the right # kind of review happen over there. proposal = form.instance - start_review(proposal) + if 'save_back' not in self.request.POST and 'js-redirect-submit' not in self.request.POST: + start_review(proposal) return success_response def get_next_url(self):