Fix bugs in model
This commit is contained in:
@ -101,7 +101,7 @@ class CaseStudy(models.Model):
|
||||
)
|
||||
|
||||
TYPE_OF_EXTRACTION_CHOICES = (
|
||||
('SUR', _('Surface (open pit/open cast/open cut mining')),
|
||||
('SUR', _('Surface (open pit/open cast/open cut mining)')),
|
||||
('SUB', _('Sub-surface (underground mining)')),
|
||||
('SEA', _('Seabed mining')),
|
||||
('URB', _('Urban mining/recycling'))
|
||||
@ -664,7 +664,7 @@ class CaseStudy(models.Model):
|
||||
|
||||
# 2.3.2
|
||||
use_in_energy_economy = models.CharField(
|
||||
verbose_name=_("Potential user in renewable energy economy"),
|
||||
verbose_name=_("Potential use in renewable energy economy"),
|
||||
help_text=_("Select the potential use of the minerals in the renewable energy economy"),
|
||||
max_length=3,
|
||||
choices=USE_IN_ENERGY_ECONOMY_CHOICES,
|
||||
@ -717,7 +717,7 @@ class CaseStudy(models.Model):
|
||||
# 2.3.4
|
||||
type_of_extraction = models.CharField(
|
||||
verbose_name=_("Type of extraction"),
|
||||
max_length=2,
|
||||
max_length=3,
|
||||
choices=TYPE_OF_EXTRACTION_CHOICES,
|
||||
default=None,
|
||||
null=True,
|
||||
@ -815,6 +815,7 @@ class CaseStudy(models.Model):
|
||||
|
||||
# 3.2.1
|
||||
negative_case_reasons = MultiSelectField(
|
||||
verbose_name=("Reasons this is a negative case study"),
|
||||
choices=NEGATIVE_CASE_REASONS_CHOICES,
|
||||
default=None,
|
||||
null=True,
|
||||
|
Reference in New Issue
Block a user