Text fields shouldn't have null=True. (#94)
This commit is contained in:
@ -317,7 +317,6 @@ class CaseStudy(models.Model):
|
||||
verbose_name=_("Land ownership details"),
|
||||
help_text=_("Please specify details about land ownership"),
|
||||
max_length=256,
|
||||
null=True,
|
||||
blank=True,
|
||||
)
|
||||
|
||||
@ -336,8 +335,6 @@ class CaseStudy(models.Model):
|
||||
help_text=_("Select the most relevant type(s)."),
|
||||
max_length=56,
|
||||
choices=TYPE_OF_ECOSYSTEM_CHOICES,
|
||||
default=None,
|
||||
null=True,
|
||||
blank=True
|
||||
)
|
||||
|
||||
@ -376,9 +373,8 @@ class CaseStudy(models.Model):
|
||||
help_text=_("Select the year the project was started. \
|
||||
If the project hasn't begun, select the projected start year."),
|
||||
choices=YEAR_CHOICES,
|
||||
default=None,
|
||||
null=True,
|
||||
blank=True
|
||||
blank=True,
|
||||
null=True
|
||||
)
|
||||
|
||||
# 1.8
|
||||
@ -469,8 +465,6 @@ class CaseStudy(models.Model):
|
||||
verbose_name=_("Video caption"),
|
||||
max_length=240,
|
||||
blank=True,
|
||||
default=None,
|
||||
null=True,
|
||||
)
|
||||
|
||||
# 1.16.3
|
||||
@ -478,24 +472,20 @@ class CaseStudy(models.Model):
|
||||
verbose_name=_("Video credit(s)"),
|
||||
max_length=240,
|
||||
blank=True,
|
||||
default=None,
|
||||
null=True,
|
||||
)
|
||||
|
||||
# 1.17.1
|
||||
media_coverage_mainstream = models.TextField(
|
||||
verbose_name=_("Links to media reports"),
|
||||
help_text=_("Provide any links to mainstream media coverage."),
|
||||
default=None,
|
||||
null=True,
|
||||
blank=True,
|
||||
)
|
||||
|
||||
# 1.17.2
|
||||
media_coverage_independent = models.TextField(
|
||||
verbose_name=_("Independent grassroots reports"),
|
||||
help_text=_("Provide any links to grassroots/independent media coverage."),
|
||||
default=None,
|
||||
null=True,
|
||||
blank=True,
|
||||
)
|
||||
|
||||
# 1.18.1
|
||||
@ -503,9 +493,7 @@ class CaseStudy(models.Model):
|
||||
verbose_name=_("Community Voices"),
|
||||
help_text=_("Add any direct quotes from members of the community that \
|
||||
relate to this project"),
|
||||
default=None,
|
||||
null=True,
|
||||
blank=True
|
||||
blank=True,
|
||||
)
|
||||
|
||||
# 1.18.2
|
||||
@ -513,9 +501,7 @@ class CaseStudy(models.Model):
|
||||
verbose_name=_("Reports of direct communications"),
|
||||
help_text=_("Add any reports of direct communication between community members and \
|
||||
representatives of developers/companies/investors."),
|
||||
default=None,
|
||||
null=True,
|
||||
blank=True
|
||||
blank=True,
|
||||
)
|
||||
|
||||
# 1.18.3
|
||||
@ -523,9 +509,7 @@ class CaseStudy(models.Model):
|
||||
verbose_name=_("Social media links"),
|
||||
help_text=_("Add any links to social media accounts directly relating to the project."),
|
||||
max_length=500,
|
||||
default=None,
|
||||
null=True,
|
||||
blank=True
|
||||
blank=True,
|
||||
)
|
||||
|
||||
##
|
||||
@ -539,8 +523,6 @@ class CaseStudy(models.Model):
|
||||
help_text=_("Select the type of renewable energy generation that most applies to this case study."),
|
||||
max_length=4,
|
||||
choices=GENERATION_TECHNOLOGY_CHOICES,
|
||||
default=None,
|
||||
null=True,
|
||||
blank=True
|
||||
)
|
||||
|
||||
@ -551,8 +533,6 @@ class CaseStudy(models.Model):
|
||||
help_text=_("If you selected biogas or biomass, please describe the feedstock (where the fuel came from e.g. \
|
||||
corn, algae, anaerobic digestion, commercial waste etc)"),
|
||||
max_length=200,
|
||||
default=None,
|
||||
null=True,
|
||||
blank=True
|
||||
)
|
||||
|
||||
@ -561,8 +541,6 @@ class CaseStudy(models.Model):
|
||||
verbose_name=_("Other generation type"),
|
||||
help_text=_("If you selected other, please specify the generation technology (e.g. tidal, wave etc)"),
|
||||
max_length=200,
|
||||
default=None,
|
||||
null=True,
|
||||
blank=True
|
||||
)
|
||||
|
||||
@ -570,9 +548,8 @@ class CaseStudy(models.Model):
|
||||
total_generation_capacity = models.PositiveIntegerField(
|
||||
verbose_name=_("Total generation capacity (in kW)"),
|
||||
help_text=_("Please enter the total generation capacity of the project in kW"),
|
||||
default=None,
|
||||
null=True,
|
||||
blank=True,
|
||||
null=True
|
||||
)
|
||||
|
||||
# 2.1.3
|
||||
@ -580,8 +557,6 @@ class CaseStudy(models.Model):
|
||||
generation_equipment_supplier = models.TextField(
|
||||
verbose_name=_("Generation equipment supplier"),
|
||||
help_text=_("Enter the supplier of the generation equipment. (E.g. Siemens)"),
|
||||
default=None,
|
||||
null=True,
|
||||
blank=True
|
||||
)
|
||||
|
||||
@ -589,9 +564,8 @@ class CaseStudy(models.Model):
|
||||
total_investment = models.IntegerField(
|
||||
verbose_name=_("Total investment (in USD)"),
|
||||
help_text=_("The approximate total investment for the project in USD."),
|
||||
default=None,
|
||||
null=True,
|
||||
blank=True
|
||||
blank=True,
|
||||
null=True
|
||||
)
|
||||
|
||||
# 2.1.5
|
||||
@ -608,8 +582,6 @@ class CaseStudy(models.Model):
|
||||
help_text=_("Select the related energy technology."),
|
||||
max_length=2,
|
||||
choices=POWER_TECHNOLOGY_CHOICES,
|
||||
default=None,
|
||||
null=True,
|
||||
blank=True
|
||||
)
|
||||
|
||||
@ -618,8 +590,6 @@ class CaseStudy(models.Model):
|
||||
verbose_name=_("Other power technology"),
|
||||
help_text=_("If you answered 'others', please specify the power technologies."),
|
||||
max_length=128,
|
||||
default=None,
|
||||
null=True,
|
||||
blank=True
|
||||
)
|
||||
|
||||
@ -629,9 +599,8 @@ class CaseStudy(models.Model):
|
||||
help_text=_("Enter the total capacity of the energy storage system in kilowatt-hours (kWh)."),
|
||||
max_digits=20,
|
||||
decimal_places=3,
|
||||
default=None,
|
||||
blank=True,
|
||||
null=True,
|
||||
blank=True
|
||||
)
|
||||
|
||||
# 2.2.2.1
|
||||
@ -640,9 +609,8 @@ class CaseStudy(models.Model):
|
||||
help_text=_('Enter the maximum power output of the storage system in kilowatts (kW).'),
|
||||
max_digits=12,
|
||||
decimal_places=3,
|
||||
default=None,
|
||||
blank=True,
|
||||
null=True,
|
||||
blank=True
|
||||
)
|
||||
|
||||
# 2.2.2.2
|
||||
@ -651,9 +619,8 @@ class CaseStudy(models.Model):
|
||||
help_text=_('Enter the time it takes to discharge from full capacity at maximum power output (in hours).'),
|
||||
max_digits=6,
|
||||
decimal_places=3,
|
||||
default=None,
|
||||
blank=True,
|
||||
null=True,
|
||||
blank=True
|
||||
)
|
||||
|
||||
# 2.2.3
|
||||
@ -661,8 +628,6 @@ class CaseStudy(models.Model):
|
||||
verbose_name=_('Contractor and/or supplier of technology'),
|
||||
help_text=_('List companies that act as contractors or suppliers of technology related to energy storage.'),
|
||||
max_length=256,
|
||||
default=None,
|
||||
null=True,
|
||||
blank=True
|
||||
)
|
||||
|
||||
@ -670,9 +635,9 @@ class CaseStudy(models.Model):
|
||||
approximate_total_investment = models.PositiveIntegerField(
|
||||
verbose_name=_('Approximate total investment'),
|
||||
help_text=_('Enter the approximate total investment in USD ($).'),
|
||||
blank=True,
|
||||
default=None,
|
||||
null=True,
|
||||
blank=True
|
||||
)
|
||||
|
||||
# 2.2.5
|
||||
@ -680,8 +645,6 @@ class CaseStudy(models.Model):
|
||||
verbose_name=_("Additional technical or economic details"),
|
||||
help_text=_("Add any additional details such as: length, from-to, voltage, substations etc"),
|
||||
max_length=512,
|
||||
default=None,
|
||||
null=True,
|
||||
blank=True
|
||||
)
|
||||
|
||||
@ -691,8 +654,6 @@ class CaseStudy(models.Model):
|
||||
help_text=_("Select the mineral commodity that is primarily mined in this project"),
|
||||
max_length=3,
|
||||
choices=MINERAL_COMMODITY_CHOICES,
|
||||
default=None,
|
||||
null=True,
|
||||
blank=True
|
||||
)
|
||||
|
||||
@ -701,8 +662,6 @@ class CaseStudy(models.Model):
|
||||
verbose_name=_("Other mineral commodity"),
|
||||
help_text=_("Enter the mineral commodity that isn't in the list."),
|
||||
max_length=64,
|
||||
default=None,
|
||||
null=True,
|
||||
blank=True
|
||||
)
|
||||
|
||||
@ -712,8 +671,6 @@ class CaseStudy(models.Model):
|
||||
help_text=_("Select the potential use of the minerals in the renewable energy economy"),
|
||||
max_length=3,
|
||||
choices=USE_IN_ENERGY_ECONOMY_CHOICES,
|
||||
default=None,
|
||||
null=True,
|
||||
blank=True
|
||||
)
|
||||
|
||||
@ -721,8 +678,6 @@ class CaseStudy(models.Model):
|
||||
use_in_energy_economy_other = models.CharField(
|
||||
verbose_name=_('Other use in energy economy'),
|
||||
max_length=128,
|
||||
default=None,
|
||||
null=True,
|
||||
blank=True
|
||||
)
|
||||
|
||||
@ -740,8 +695,6 @@ 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,
|
||||
null=True,
|
||||
default=None,
|
||||
blank=True
|
||||
)
|
||||
|
||||
@ -751,8 +704,6 @@ class CaseStudy(models.Model):
|
||||
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,
|
||||
default=None,
|
||||
null=True,
|
||||
blank=True
|
||||
)
|
||||
|
||||
@ -761,8 +712,6 @@ class CaseStudy(models.Model):
|
||||
verbose_name=_("Type of extraction"),
|
||||
max_length=3,
|
||||
choices=TYPE_OF_EXTRACTION_CHOICES,
|
||||
default=None,
|
||||
null=True,
|
||||
blank=True
|
||||
)
|
||||
|
||||
@ -773,8 +722,6 @@ class CaseStudy(models.Model):
|
||||
treatment facilities; ore processing facilities; smelting facilities; hydroelectric dams/energy infrastructure;\
|
||||
transport infrastructure e.g. roads or rail."),
|
||||
max_length=256,
|
||||
default=None,
|
||||
null=True,
|
||||
blank=True
|
||||
)
|
||||
|
||||
@ -788,8 +735,6 @@ class CaseStudy(models.Model):
|
||||
help_text=_('Select the most relevant type of positive case'),
|
||||
choices=POSITIVE_CASE_TYPE_CHOICES,
|
||||
max_length=4,
|
||||
default=None,
|
||||
null=True,
|
||||
blank=True,
|
||||
)
|
||||
|
||||
@ -799,23 +744,19 @@ class CaseStudy(models.Model):
|
||||
help_text=_('Please expand on your response given in the full description on page one. We would expect \
|
||||
benefits to go beyond emissions savings, paying rent for land, or complying with environmental or social \
|
||||
legislation'),
|
||||
default=None,
|
||||
null=True,
|
||||
blank=True
|
||||
)
|
||||
|
||||
# 3.1.3 + 3.2.5
|
||||
key_actors_involved = models.TextField(
|
||||
verbose_name=_('Key actors involved (individual/organisational)'),
|
||||
blank=True, null=True
|
||||
blank=True
|
||||
)
|
||||
|
||||
# 3.1.4
|
||||
project_status_detail = models.TextField(
|
||||
verbose_name=_('Current status of the project'),
|
||||
help_text=_("Describe the current status of the project, expanding beyond 'existing', 'under construction' etc"),
|
||||
default=None,
|
||||
null=True,
|
||||
blank=True
|
||||
)
|
||||
|
||||
@ -824,8 +765,6 @@ class CaseStudy(models.Model):
|
||||
verbose_name=_('Obstacles and hindrances'),
|
||||
help_text=_('List any obstacles or hindrances experienced in the course of the project'),
|
||||
max_length=512,
|
||||
default=None,
|
||||
null=True,
|
||||
blank=True
|
||||
)
|
||||
|
||||
@ -835,8 +774,6 @@ class CaseStudy(models.Model):
|
||||
help_text=_('Are you looking for partnerships or have any clearly identified need? If so, please describe it \
|
||||
here.'),
|
||||
max_length=256,
|
||||
default=None,
|
||||
null=True,
|
||||
blank=True
|
||||
)
|
||||
|
||||
@ -882,8 +819,6 @@ class CaseStudy(models.Model):
|
||||
negative_case_reasons = MultiSelectField(
|
||||
verbose_name=("Reasons this is a negative case study"),
|
||||
choices=NEGATIVE_CASE_REASONS_CHOICES,
|
||||
default=None,
|
||||
null=True,
|
||||
blank=True
|
||||
)
|
||||
|
||||
@ -893,8 +828,6 @@ class CaseStudy(models.Model):
|
||||
help_text=_("Please include other reasons, noting that we aim to focus on projects with substantive negative \
|
||||
impacts on vulnerable groups."),
|
||||
max_length=512,
|
||||
default=None,
|
||||
null=True,
|
||||
blank=True
|
||||
)
|
||||
|
||||
@ -906,8 +839,6 @@ class CaseStudy(models.Model):
|
||||
, specific communities affected by the project, total geographic footprint of the project, and \
|
||||
tenure system affected in the case of land grabs, kind of permits that were irregularly issued if \
|
||||
this is the case."),
|
||||
default=None,
|
||||
null=True,
|
||||
blank=True
|
||||
)
|
||||
|
||||
@ -916,8 +847,6 @@ class CaseStudy(models.Model):
|
||||
verbose_name=_("Describe if the project is isolated or commonplace."),
|
||||
help_text=_("Is this an isolated project or are there similar projects in the same geographic area? If there \
|
||||
are more, can you describe them? Are there any significant cumulative synergistic effects?"),
|
||||
default=None,
|
||||
null=True,
|
||||
blank=True
|
||||
)
|
||||
|
||||
@ -927,15 +856,13 @@ class CaseStudy(models.Model):
|
||||
help_text=_("Before the project started? During project implementation? After project implementation? \
|
||||
Describe in your own words."),
|
||||
max_length=512,
|
||||
default=None,
|
||||
null=True,
|
||||
blank=True
|
||||
)
|
||||
|
||||
# 3.2.4.2
|
||||
who_has_been_involved = models.TextField(
|
||||
verbose_name=_("Which communities, groups and organisations have been involved?"),
|
||||
blank=True, null=True
|
||||
blank=True
|
||||
)
|
||||
|
||||
# 3.2.4.3
|
||||
@ -951,8 +878,6 @@ class CaseStudy(models.Model):
|
||||
help_text=_("Are you looking for partnerships or do you have any clearly identified need? If so, please \
|
||||
describe it here."),
|
||||
max_length=512,
|
||||
default=None,
|
||||
null=True,
|
||||
blank=True
|
||||
)
|
||||
|
||||
@ -1009,8 +934,6 @@ class CaseStudy(models.Model):
|
||||
name_of_territory_or_area = models.CharField(
|
||||
verbose_name=_("Name of territory or area"),
|
||||
max_length=512,
|
||||
default=None,
|
||||
null=True,
|
||||
blank=True
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user