This repository has been archived by the owner on Feb 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ideas/migrations: add migration for using new CustomIntegerFields
- Loading branch information
1 parent
037e7c9
commit 00a4ab7
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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)]), | ||
), | ||
] |