diff --git a/apps/map/forms.py b/apps/map/forms.py index 0338948..67efffe 100644 --- a/apps/map/forms.py +++ b/apps/map/forms.py @@ -176,7 +176,8 @@ class LongCaseStudyForm(BaseCaseStudyForm): self.fields['positive_case_type'] = forms.ChoiceField( widget=forms.RadioSelect(), - choices=POSITIVE_CASE_TYPE_CHOICES + choices=POSITIVE_CASE_TYPE_CHOICES, + required=False ) self.fields['project_owners'].required = True diff --git a/apps/map/migrations/0060_auto_20180523_1659.py b/apps/map/migrations/0060_auto_20180523_1659.py new file mode 100644 index 0000000..5066bb3 --- /dev/null +++ b/apps/map/migrations/0060_auto_20180523_1659.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11.6 on 2018-05-23 16:59 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('map', '0059_auto_20180519_1801'), + ] + + operations = [ + migrations.AlterField( + model_name='casestudy', + name='project_life_span', + field=models.CharField(blank=True, help_text='e.g. 12 years of production, 15 years overall', max_length=200, verbose_name='Project life span'), + ), + ] diff --git a/apps/map/models.py b/apps/map/models.py index b73a7d2..d1caf67 100644 --- a/apps/map/models.py +++ b/apps/map/models.py @@ -739,9 +739,7 @@ class CaseStudy(models.Model): verbose_name=_("Project life span"), help_text=_("e.g. 12 years of production, 15 years overall"), max_length=200, - default=None, - null=True, - blank=None + blank=True ) # 2.3.3.2