Add moss pascal

This commit is contained in:
cuom1999 2020-06-15 11:10:44 -05:00
parent c3db3b0aa2
commit e00a64e49b
2 changed files with 3 additions and 1 deletions

View file

@ -13,6 +13,7 @@ class Command(BaseCommand):
('C', MOSS_LANG_C), ('C', MOSS_LANG_C),
('Java', MOSS_LANG_JAVA), ('Java', MOSS_LANG_JAVA),
('Python', MOSS_LANG_PYTHON), ('Python', MOSS_LANG_PYTHON),
('Pascal', MOSS_LANG_PASCAL),
} }
def add_arguments(self, parser): def add_arguments(self, parser):

View file

@ -7,7 +7,7 @@ from django.utils import timezone
from django.utils.functional import cached_property from django.utils.functional import cached_property
from django.utils.translation import gettext, gettext_lazy as _ from django.utils.translation import gettext, gettext_lazy as _
from jsonfield import JSONField from jsonfield import JSONField
from moss import MOSS_LANG_C, MOSS_LANG_CC, MOSS_LANG_JAVA, MOSS_LANG_PYTHON from moss import MOSS_LANG_C, MOSS_LANG_CC, MOSS_LANG_JAVA, MOSS_LANG_PYTHON, MOSS_LANG_PASCAL
from judge import contest_format from judge import contest_format
from judge.models.problem import Problem from judge.models.problem import Problem
@ -399,6 +399,7 @@ class ContestMoss(models.Model):
('C++', MOSS_LANG_CC), ('C++', MOSS_LANG_CC),
('Java', MOSS_LANG_JAVA), ('Java', MOSS_LANG_JAVA),
('Python', MOSS_LANG_PYTHON), ('Python', MOSS_LANG_PYTHON),
('Pascal', MOSS_LANG_PASCAL),
] ]
contest = models.ForeignKey(Contest, verbose_name=_('contest'), related_name='moss', on_delete=CASCADE) contest = models.ForeignKey(Contest, verbose_name=_('contest'), related_name='moss', on_delete=CASCADE)