Add duplication check for contest edit in group

This commit is contained in:
cuom1999 2023-08-25 17:34:33 -05:00
parent 0da2098bbe
commit 97d0239963
6 changed files with 64 additions and 25 deletions

View file

@ -926,8 +926,12 @@ class EditOrganizationContest(
super().post(request, *args, **kwargs)
return HttpResponseRedirect(
reverse(
"organization_contests",
args=(self.organization_id, self.organization.slug),
"organization_contest_edit",
args=(
self.organization_id,
self.organization.slug,
self.contest.key,
),
)
)