override post EditOrganizationContest

This commit is contained in:
DELL 2022-10-08 22:12:08 +07:00
parent d03150a396
commit c9d495d53c

View file

@ -929,7 +929,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(