Cloud-CV/EvalAI

View on GitHub
apps/jobs/migrations/0020_submission_submission_input_file.py

Summary

Maintainability
A
3 hrs
Test Coverage
# Generated by Django 2.2.13 on 2021-05-26 09:51

import base.utils
from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ("jobs", "0019_add_missing_migration_file_after_django_2_migration"),
    ]

    operations = [
        migrations.AddField(
            model_name="submission",
            name="submission_input_file",
            field=models.FileField(
                blank=True,
                null=True,
                upload_to=base.utils.RandomFileName(
                    "submission_files/submission_{id}"
                ),
            ),
        ),
    ]