NDOJ/judge/admin/__init__.py

89 lines
2.8 KiB
Python
Raw Permalink Normal View History

2020-01-21 06:35:58 +00:00
from django.contrib import admin
from django.contrib.admin.models import LogEntry
2023-08-22 04:21:25 +00:00
from django.contrib.auth.models import User
2020-01-21 06:35:58 +00:00
from judge.admin.comments import CommentAdmin
2023-10-06 08:54:37 +00:00
from judge.admin.contest import (
ContestAdmin,
ContestParticipationAdmin,
ContestTagAdmin,
ContestsSummaryAdmin,
)
2022-05-14 17:57:27 +00:00
from judge.admin.interface import (
BlogPostAdmin,
LicenseAdmin,
LogEntryAdmin,
NavigationBarAdmin,
)
2020-01-21 06:35:58 +00:00
from judge.admin.organization import OrganizationAdmin, OrganizationRequestAdmin
2022-03-10 05:38:29 +00:00
from judge.admin.problem import ProblemAdmin, ProblemPointsVoteAdmin
2023-08-22 04:21:25 +00:00
from judge.admin.profile import ProfileAdmin, UserAdmin
2020-01-21 06:35:58 +00:00
from judge.admin.runtime import JudgeAdmin, LanguageAdmin
from judge.admin.submission import SubmissionAdmin
2024-05-30 07:59:22 +00:00
from judge.admin.taxon import (
ProblemGroupAdmin,
ProblemTypeAdmin,
OfficialContestCategoryAdmin,
OfficialContestLocationAdmin,
)
2020-01-21 06:35:58 +00:00
from judge.admin.ticket import TicketAdmin
2022-05-03 02:44:14 +00:00
from judge.admin.volunteer import VolunteerProblemVoteAdmin
2024-02-19 23:00:44 +00:00
from judge.admin.course import CourseAdmin
2022-05-14 17:57:27 +00:00
from judge.models import (
BlogPost,
Comment,
CommentLock,
Contest,
ContestParticipation,
ContestTag,
Judge,
Language,
License,
MiscConfig,
NavigationBar,
Organization,
OrganizationRequest,
Problem,
ProblemGroup,
ProblemPointsVote,
ProblemType,
Profile,
Submission,
Ticket,
VolunteerProblemVote,
Course,
2023-10-06 08:54:37 +00:00
ContestsSummary,
2024-05-30 07:59:22 +00:00
OfficialContestCategory,
OfficialContestLocation,
2022-05-14 17:57:27 +00:00
)
2020-01-21 06:35:58 +00:00
2020-01-21 06:35:58 +00:00
admin.site.register(BlogPost, BlogPostAdmin)
admin.site.register(Comment, CommentAdmin)
admin.site.register(CommentLock)
admin.site.register(Contest, ContestAdmin)
admin.site.register(ContestParticipation, ContestParticipationAdmin)
admin.site.register(ContestTag, ContestTagAdmin)
admin.site.register(Judge, JudgeAdmin)
admin.site.register(Language, LanguageAdmin)
admin.site.register(License, LicenseAdmin)
admin.site.register(LogEntry, LogEntryAdmin)
admin.site.register(MiscConfig)
admin.site.register(NavigationBar, NavigationBarAdmin)
admin.site.register(Organization, OrganizationAdmin)
admin.site.register(OrganizationRequest, OrganizationRequestAdmin)
admin.site.register(Problem, ProblemAdmin)
admin.site.register(ProblemGroup, ProblemGroupAdmin)
2022-03-10 05:38:29 +00:00
admin.site.register(ProblemPointsVote, ProblemPointsVoteAdmin)
2020-01-21 06:35:58 +00:00
admin.site.register(ProblemType, ProblemTypeAdmin)
admin.site.register(Profile, ProfileAdmin)
admin.site.register(Submission, SubmissionAdmin)
admin.site.register(Ticket, TicketAdmin)
2022-05-14 17:57:27 +00:00
admin.site.register(VolunteerProblemVote, VolunteerProblemVoteAdmin)
2024-02-19 23:00:44 +00:00
admin.site.register(Course, CourseAdmin)
2023-08-22 04:21:25 +00:00
admin.site.unregister(User)
admin.site.register(User, UserAdmin)
2023-10-06 08:54:37 +00:00
admin.site.register(ContestsSummary, ContestsSummaryAdmin)
2024-05-30 07:59:22 +00:00
admin.site.register(OfficialContestCategory, OfficialContestCategoryAdmin)
admin.site.register(OfficialContestLocation, OfficialContestLocationAdmin)