Add pdf option for problem
This commit is contained in:
parent
98b8cbe518
commit
69f08e84b5
7 changed files with 65 additions and 3 deletions
25
judge/migrations/0130_auto_20220831_1048.py
Normal file
25
judge/migrations/0130_auto_20220831_1048.py
Normal file
|
@ -0,0 +1,25 @@
|
|||
# Generated by Django 2.2.25 on 2022-08-31 03:48
|
||||
|
||||
from django.db import migrations, models
|
||||
import judge.models.problem
|
||||
import judge.utils.problem_data
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('judge', '0129_auto_20220622_1424'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='problem',
|
||||
name='pdf_description',
|
||||
field=models.FileField(blank=True, null=True, storage=judge.utils.problem_data.ProblemDataStorage(), upload_to=judge.models.problem.problem_directory_file, verbose_name='pdf statement'),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='problem',
|
||||
name='description',
|
||||
field=models.TextField(blank=True, verbose_name='problem body'),
|
||||
),
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue