From cb21daca5b8280217c3e73dd731c86fd1915e270 Mon Sep 17 00:00:00 2001 From: Anna Sidwell Date: Tue, 27 Mar 2018 15:10:04 +1100 Subject: [PATCH] Allow more fields in the case study to be blank --- .../map/migrations/0037_auto_20180327_0549.py | 30 +++++++++++++++++++ apps/map/models.py | 7 +++-- 2 files changed, 34 insertions(+), 3 deletions(-) create mode 100644 apps/map/migrations/0037_auto_20180327_0549.py diff --git a/apps/map/migrations/0037_auto_20180327_0549.py b/apps/map/migrations/0037_auto_20180327_0549.py new file mode 100644 index 0000000..34630d2 --- /dev/null +++ b/apps/map/migrations/0037_auto_20180327_0549.py @@ -0,0 +1,30 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11.6 on 2018-03-27 05:49 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('map', '0036_auto_20180327_0334'), + ] + + operations = [ + migrations.AlterField( + model_name='casestudy', + name='direct_comms', + field=models.TextField(blank=True, default=None, help_text='Add any reports of direct communication between community members and representatives of developers/companies/investors.', max_length=500, null=True, verbose_name='Reports of direct communications'), + ), + migrations.AlterField( + model_name='casestudy', + name='projected_production_of_commodities', + field=models.CharField(blank=True, default=None, help_text="Describe the projected production of commodities per annum and overall (e.g. '40 million tonnes of iron ore per year, 200 million tonnes over 5 year life of mine'", max_length=256, null=True, verbose_name='Projected production of key commodities'), + ), + migrations.AlterField( + model_name='casestudy', + name='size_of_concessions', + field=models.CharField(blank=True, default=None, help_text="Describe the size of concession(s) granted to company/companies (e.g. 'one concession encompassing 2,300 hectares')", max_length=200, null=True, verbose_name='Size of concessions'), + ), + ] diff --git a/apps/map/models.py b/apps/map/models.py index 76c33ef..c1144f5 100644 --- a/apps/map/models.py +++ b/apps/map/models.py @@ -477,6 +477,7 @@ class CaseStudy(models.Model): max_length=500, default=None, null=True, + blank=True ) # 1.18.3 @@ -701,9 +702,9 @@ class CaseStudy(models.Model): help_text=_("Describe the size of concession(s) granted to company/companies (e.g. 'one concession encompassing\ 2,300 hectares')"), max_length=200, - default=None, null=True, - blank=None + default=None, + blank=True ) # 2.3.3.3 @@ -714,7 +715,7 @@ class CaseStudy(models.Model): max_length=256, default=None, null=True, - blank=None + blank=True ) # 2.3.4