fix lint errors
This commit is contained in:
parent
25ebc87db8
commit
e72c7c3a9a
3 changed files with 6 additions and 3 deletions
|
@ -1,8 +1,8 @@
|
||||||
# Generated by Django 2.2.9 on 2020-01-23 21:36
|
# Generated by Django 2.2.9 on 2020-01-23 21:36
|
||||||
|
|
||||||
import django.core.validators
|
import django.core.validators
|
||||||
from django.db import migrations, models
|
|
||||||
import django.db.models.deletion
|
import django.db.models.deletion
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
class Migration(migrations.Migration):
|
|
@ -1,6 +1,6 @@
|
||||||
# Generated by Django 2.2.9 on 2020-01-23 22:28
|
# Generated by Django 2.2.9 on 2020-01-23 22:28
|
||||||
|
|
||||||
from django.db import migrations, models
|
from django.db import migrations, models
|
||||||
|
|
||||||
import judge.models.problem_data
|
import judge.models.problem_data
|
||||||
import judge.utils.problem_data
|
import judge.utils.problem_data
|
||||||
|
|
|
@ -46,7 +46,10 @@ class ProblemData(models.Model):
|
||||||
checker = models.CharField(max_length=10, verbose_name=_('checker'), choices=CHECKERS, blank=True)
|
checker = models.CharField(max_length=10, verbose_name=_('checker'), choices=CHECKERS, blank=True)
|
||||||
checker_args = models.TextField(verbose_name=_('checker arguments'), blank=True,
|
checker_args = models.TextField(verbose_name=_('checker arguments'), blank=True,
|
||||||
help_text=_('checker arguments as a JSON object'))
|
help_text=_('checker arguments as a JSON object'))
|
||||||
custom_checker = models.FileField(verbose_name=_('custom checker file'), storage=problem_data_storage, null=True, blank=True,
|
custom_checker = models.FileField(verbose_name=_('custom checker file'),
|
||||||
|
storage=problem_data_storage,
|
||||||
|
null=True,
|
||||||
|
blank=True,
|
||||||
upload_to=problem_directory_file,
|
upload_to=problem_directory_file,
|
||||||
validators=[FileExtensionValidator(allowed_extensions=['py'])])
|
validators=[FileExtensionValidator(allowed_extensions=['py'])])
|
||||||
__original_zipfile = None
|
__original_zipfile = None
|
||||||
|
|
Loading…
Reference in a new issue