Fix error when save edit organization contest

This commit is contained in:
Zhao-Linux 2022-10-08 00:54:12 +07:00
parent 046c82e77d
commit 43ffca160b

View file

@ -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(