NDOJ/judge/models/__init__.py

73 lines
2.1 KiB
Python
Raw Permalink Normal View History

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,
EFFECTIVE_MATH_ENGINES,
MATH_ENGINES_CHOICES,
TIMEZONE,
)
2020-07-03 02:50:31 +00:00
from judge.models.comment import Comment, CommentLock, CommentVote, Notification
2022-05-14 17:57:27 +00:00
from judge.models.contest import (
Contest,
ContestMoss,
ContestParticipation,
ContestProblem,
ContestSubmission,
ContestTag,
Rating,
)
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,
License,
Problem,
ProblemClarification,
ProblemGroup,
ProblemTranslation,
ProblemType,
Solution,
TranslatedProblemForeignKeyQuerySet,
TranslatedProblemQuerySet,
ProblemPointsVote,
)
from judge.models.problem_data import (
CHECKERS,
ProblemData,
ProblemTestCase,
problem_data_storage,
problem_directory_file,
)
2020-06-24 01:46:33 +00:00
from judge.models.profile import Organization, OrganizationRequest, Profile, Friend
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,
)
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
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-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)
revisions.register(ContestParticipation)
revisions.register(Rating)
2020-01-21 06:35:58 +00:00
del revisions