Skip to content
This repository has been archived by the owner on Feb 27, 2023. It is now read-only.

Commit

Permalink
ideas/migrations: add migration for using new CustomIntegerFields
Browse files Browse the repository at this point in the history
  • Loading branch information
Rine authored and fuzzylogic2000 committed Feb 23, 2021
1 parent 037e7c9 commit 00a4ab7
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions apps/ideas/migrations/0020_use_custom_integer_fields.py
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)]),
),
]

0 comments on commit 00a4ab7

Please sign in to comment.