2020-01-21 06:35:58 +00:00
|
|
|
from reversion import revisions
|
|
|
|
|
2022-05-14 17:57:27 +00:00
|
|
|
from judge.models.choices import (
|
|
|
|
ACE_THEMES,
|
|
|
|
TIMEZONE,
|
|
|
|
)
|
2023-10-10 22:38:48 +00:00
|
|
|
from judge.models.comment import Comment, CommentLock, CommentVote
|
2022-05-14 17:57:27 +00:00
|
|
|
from judge.models.contest import (
|
|
|
|
Contest,
|
|
|
|
ContestMoss,
|
|
|
|
ContestParticipation,
|
|
|
|
ContestProblem,
|
|
|
|
ContestSubmission,
|
|
|
|
ContestTag,
|
|
|
|
Rating,
|
2022-10-13 02:19:22 +00:00
|
|
|
ContestProblemClarification,
|
2023-10-06 08:54:37 +00:00
|
|
|
ContestsSummary,
|
2024-05-30 07:59:22 +00:00
|
|
|
OfficialContestCategory,
|
|
|
|
OfficialContestLocation,
|
|
|
|
OfficialContest,
|
2022-05-14 17:57:27 +00:00
|
|
|
)
|
2020-01-21 06:35:58 +00:00
|
|
|
from judge.models.interface import BlogPost, MiscConfig, NavigationBar, validate_regex
|
|
|
|
from judge.models.message import PrivateMessage, PrivateMessageThread
|
2022-05-14 17:57:27 +00:00
|
|
|
from judge.models.problem import (
|
|
|
|
LanguageLimit,
|
2022-06-12 07:57:46 +00:00
|
|
|
LanguageTemplate,
|
2022-05-14 17:57:27 +00:00
|
|
|
License,
|
|
|
|
Problem,
|
|
|
|
ProblemGroup,
|
|
|
|
ProblemTranslation,
|
|
|
|
ProblemType,
|
|
|
|
Solution,
|
|
|
|
TranslatedProblemQuerySet,
|
|
|
|
ProblemPointsVote,
|
|
|
|
)
|
|
|
|
from judge.models.problem_data import (
|
|
|
|
CHECKERS,
|
|
|
|
ProblemData,
|
|
|
|
ProblemTestCase,
|
|
|
|
problem_data_storage,
|
|
|
|
problem_directory_file,
|
|
|
|
)
|
2022-10-18 00:30:00 +00:00
|
|
|
from judge.models.profile import (
|
|
|
|
Organization,
|
|
|
|
OrganizationRequest,
|
|
|
|
Profile,
|
|
|
|
Friend,
|
|
|
|
OrganizationProfile,
|
2024-04-27 03:51:16 +00:00
|
|
|
ProfileInfo,
|
2022-10-18 00:30:00 +00:00
|
|
|
)
|
2020-01-21 06:35:58 +00:00
|
|
|
from judge.models.runtime import Judge, Language, RuntimeVersion
|
2022-05-14 17:57:27 +00:00
|
|
|
from judge.models.submission import (
|
|
|
|
SUBMISSION_RESULT,
|
|
|
|
Submission,
|
|
|
|
SubmissionSource,
|
|
|
|
SubmissionTestCase,
|
|
|
|
)
|
2024-01-08 18:27:20 +00:00
|
|
|
|
|
|
|
from judge.models.test_formatter import TestFormatterModel
|
2020-01-21 06:35:58 +00:00
|
|
|
from judge.models.ticket import Ticket, TicketMessage
|
2022-05-03 02:44:14 +00:00
|
|
|
from judge.models.volunteer import VolunteerProblemVote
|
2022-11-16 15:43:03 +00:00
|
|
|
from judge.models.pagevote import PageVote, PageVoteVoter
|
2022-11-17 19:17:45 +00:00
|
|
|
from judge.models.bookmark import BookMark, MakeBookMark
|
2024-10-02 20:06:33 +00:00
|
|
|
from judge.models.course import (
|
|
|
|
Course,
|
|
|
|
CourseRole,
|
|
|
|
CourseLesson,
|
|
|
|
CourseLessonProblem,
|
|
|
|
CourseContest,
|
|
|
|
)
|
2023-10-10 22:38:48 +00:00
|
|
|
from judge.models.notification import Notification, NotificationProfile
|
2024-01-08 18:27:20 +00:00
|
|
|
from judge.models.test_formatter import TestFormatterModel
|
2020-01-21 06:35:58 +00:00
|
|
|
|
2022-05-14 17:57:27 +00:00
|
|
|
revisions.register(Profile, exclude=["points", "last_access", "ip", "rating"])
|
|
|
|
revisions.register(Problem, follow=["language_limits"])
|
2020-01-21 06:35:58 +00:00
|
|
|
revisions.register(LanguageLimit)
|
2022-06-13 18:30:40 +00:00
|
|
|
revisions.register(LanguageTemplate)
|
2022-05-14 17:57:27 +00:00
|
|
|
revisions.register(Contest, follow=["contest_problems"])
|
2020-01-21 06:35:58 +00:00
|
|
|
revisions.register(ContestProblem)
|
|
|
|
revisions.register(Organization)
|
|
|
|
revisions.register(BlogPost)
|
|
|
|
revisions.register(Solution)
|
2022-05-14 17:57:27 +00:00
|
|
|
revisions.register(Judge, fields=["name", "created", "auth_key", "description"])
|
2020-01-21 06:35:58 +00:00
|
|
|
revisions.register(Language)
|
2022-05-14 17:57:27 +00:00
|
|
|
revisions.register(
|
|
|
|
Comment, fields=["author", "time", "page", "score", "body", "hidden", "parent"]
|
|
|
|
)
|
2022-04-26 03:00:15 +00:00
|
|
|
revisions.register(ProblemTranslation)
|
|
|
|
revisions.register(ProblemPointsVote)
|
|
|
|
revisions.register(ContestMoss)
|
|
|
|
revisions.register(ProblemData)
|
|
|
|
revisions.register(ProblemTestCase)
|
2022-04-26 18:24:36 +00:00
|
|
|
revisions.register(ContestParticipation)
|
|
|
|
revisions.register(Rating)
|
2022-11-16 15:43:03 +00:00
|
|
|
revisions.register(PageVoteVoter)
|
2022-06-12 06:52:02 +00:00
|
|
|
revisions.register(VolunteerProblemVote)
|
2022-11-17 19:17:45 +00:00
|
|
|
revisions.register(MakeBookMark)
|
2023-01-31 15:50:52 +00:00
|
|
|
revisions.register(Course)
|
2020-01-21 06:35:58 +00:00
|
|
|
del revisions
|