NDOJ/judge/migrations/0099_custom_checker.py

67 lines
2.2 KiB
Python
Raw Permalink Normal View History

2020-01-24 02:32:46 +00:00
# Generated by Django 2.2.9 on 2020-01-23 22:28
from django.db import migrations, models
2020-01-24 02:39:19 +00:00
2020-01-24 02:32:46 +00:00
import judge.models.problem_data
import judge.utils.problem_data
class Migration(migrations.Migration):
dependencies = [
2022-05-14 17:57:27 +00:00
("judge", "0098_auto_20200123_2136"),
2020-01-24 02:32:46 +00:00
]
operations = [
migrations.AddField(
2022-05-14 17:57:27 +00:00
model_name="problemdata",
name="custom_checker",
field=models.FileField(
blank=True,
null=True,
storage=judge.utils.problem_data.ProblemDataStorage(),
upload_to=judge.models.problem_data.problem_directory_file,
verbose_name="custom checker file",
),
2020-01-24 02:32:46 +00:00
),
migrations.AlterField(
2022-05-14 17:57:27 +00:00
model_name="problemdata",
name="checker",
field=models.CharField(
blank=True,
choices=[
("standard", "Standard"),
("floats", "Floats"),
("floatsabs", "Floats (absolute)"),
("floatsrel", "Floats (relative)"),
("rstripped", "Non-trailing spaces"),
("sorted", "Unordered"),
("identical", "Byte identical"),
("linecount", "Line-by-line"),
("custom", "Custom checker"),
],
max_length=10,
verbose_name="checker",
),
2020-01-24 02:32:46 +00:00
),
migrations.AlterField(
2022-05-14 17:57:27 +00:00
model_name="problemtestcase",
name="checker",
field=models.CharField(
blank=True,
choices=[
("standard", "Standard"),
("floats", "Floats"),
("floatsabs", "Floats (absolute)"),
("floatsrel", "Floats (relative)"),
("rstripped", "Non-trailing spaces"),
("sorted", "Unordered"),
("identical", "Byte identical"),
("linecount", "Line-by-line"),
("custom", "Custom checker"),
],
max_length=10,
verbose_name="checker",
),
2020-01-24 02:32:46 +00:00
),
]