Fix error when save edit organization contest
This commit is contained in:
parent
11e4bc5a10
commit
2646d12fe2
1 changed files with 2 additions and 2 deletions
|
@ -933,8 +933,8 @@ class EditOrganizationContest(
|
||||||
problem_form.save()
|
problem_form.save()
|
||||||
for problem_form in problem_formset.deleted_objects:
|
for problem_form in problem_formset.deleted_objects:
|
||||||
problem_form.delete()
|
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
|
self.object = self.contest
|
||||||
return self.render_to_response(
|
return self.render_to_response(
|
||||||
self.get_context_data(
|
self.get_context_data(
|
||||||
|
|
Loading…
Reference in a new issue