From 43ffca160bc012d60e605708d75fb9bfb15781dd Mon Sep 17 00:00:00 2001 From: Zhao-Linux Date: Sat, 8 Oct 2022 00:54:12 +0700 Subject: [PATCH] Fix error when save edit organization contest --- judge/views/organization.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/judge/views/organization.py b/judge/views/organization.py index 0414516..53727ca 100644 --- a/judge/views/organization.py +++ b/judge/views/organization.py @@ -930,7 +930,8 @@ class EditOrganizationContest( problem_form.save() for problem_form in problem_formset.deleted_objects: problem_form.delete() - return super().post(request, *args, **kwargs) + super().post(request, *args, **kwargs) + return HttpResponseRedirect(reverse("organization_contests", args=(self.organization_id,self.organization.slug))) self.object = self.contest return self.render_to_response(