Allow to create group and its contest on UI

This commit is contained in:
cuom1999 2022-09-15 02:05:02 -05:00
parent 196e2a9bb0
commit 67ef6b9111
28 changed files with 1029 additions and 556 deletions

View file

@ -75,6 +75,7 @@ DMOJ_BLOG_NEW_CONTEST_COUNT = 7
DMOJ_BLOG_RECENTLY_ATTEMPTED_PROBLEMS_COUNT = 7
DMOJ_TOTP_TOLERANCE_HALF_MINUTES = 1
DMOJ_USER_MAX_ORGANIZATION_COUNT = 10
DMOJ_USER_MAX_ORGANIZATION_ADD = 5
DMOJ_COMMENT_VOTE_HIDE_THRESHOLD = -5
DMOJ_PDF_PROBLEM_CACHE = ""
DMOJ_PDF_PROBLEM_TEMP_DIR = tempfile.gettempdir()

View file

@ -581,6 +581,11 @@ urlpatterns = [
organization.OrganizationList.as_view(),
name="organization_list",
),
url(
r"^organizations/add/$",
organization.AddOrganization.as_view(),
name="organization_add",
),
url(
r"^organization/(?P<pk>\d+)-(?P<slug>[\w-]*)",
include(
@ -609,6 +614,16 @@ urlpatterns = [
organization.OrganizationContests, "organization_contests"
),
),
url(
r"^/contest/add",
organization.AddOrganizationContest.as_view(),
name="organization_contest_add",
),
url(
r"^/contest/edit/(?P<contest>\w+)",
organization.EditOrganizationContest.as_view(),
name="organization_contest_edit",
),
url(
r"^/submissions/",
paged_list_view(