Add memory unit to problem admin

This commit is contained in:
cuom1999 2022-08-31 00:23:23 -05:00
parent dddaf69fb7
commit 7f3e22e3bf
6 changed files with 175 additions and 134 deletions

View file

@ -8,18 +8,24 @@ import judge.utils.problem_data
class Migration(migrations.Migration):
dependencies = [
('judge', '0129_auto_20220622_1424'),
("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'),
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'),
model_name="problem",
name="description",
field=models.TextField(blank=True, verbose_name="problem body"),
),
]