diff --git a/apps/ideas/migrations/0020_use_custom_integer_fields.py b/apps/ideas/migrations/0020_use_custom_integer_fields.py new file mode 100644 index 000000000..7a429283a --- /dev/null +++ b/apps/ideas/migrations/0020_use_custom_integer_fields.py @@ -0,0 +1,35 @@ +# Generated by Django 2.2.18 on 2021-02-23 10:55 + +import apps.ideas.fields +import django.core.validators +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('civic_europe_ideas', '0019_update_budget_amount'), + ] + + operations = [ + migrations.AlterField( + model_name='idea', + name='budget_requested', + field=apps.ideas.fields.CustomIntegerField(help_text='Funding requested from Civic Europe can range from 1 to 35000 EUR. Depending on your planning, the amount entered here can be the same as the “total budget” figure entered above. This section will be published in the idea space.', validators=[django.core.validators.MaxValueValidator(35000), django.core.validators.MinValueValidator(0)], verbose_name='Funding requested from Civic Europe'), + ), + migrations.AlterField( + model_name='idea', + name='duration', + field=apps.ideas.fields.CustomIntegerField(help_text='How many months will it take to implement your idea?', verbose_name='Duration of idea (number of months)'), + ), + migrations.AlterField( + model_name='idea', + name='total_budget', + field=apps.ideas.fields.CustomIntegerField(help_text='Please indicate your overall budget. The total budget may (but does not have to) include the applicant’s own contribution and/or external sources of funding. Please only enter whole numbers, no decimal signs like points, commas or spaces. This section will be published in the idea space.', validators=[django.core.validators.MinValueValidator(0)], verbose_name='Total budget'), + ), + migrations.AlterField( + model_name='idea', + name='year_of_registration', + field=apps.ideas.fields.CustomIntegerField(blank=True, null=True, validators=[django.core.validators.MaxValueValidator(2050), django.core.validators.MinValueValidator(0)]), + ), + ]