# Generated by Django 3.1.13 on 2021-08-26 19:30

import django.core.validators
from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ("evaluation", "0011_auto_20210819_1832"),
    ]

    operations = [
        migrations.RenameField(
            model_name="phase",
            old_name="daily_submission_limit",
            new_name="submission_limit",
        ),
        migrations.AddField(
            model_name="phase",
            name="submission_limit_period",
            field=models.PositiveSmallIntegerField(
                blank=True,
                default=1,
                help_text="The number of days to consider for the submission limit period. If this is set to 1, then the submission limit is applied over the previous day. If it is set to 365, then the submission limit is applied over the previous year. If the value is not set, then the limit is applied over all time.",
                null=True,
                validators=[
                    django.core.validators.MinValueValidator(limit_value=1)
                ],
            ),
        ),
    ]
