Fix 1.2.1 to be a single choice instead of three (#43)
This commit is contained in:
parent
b7f2be8b3e
commit
946ec52119
20
apps/map/migrations/0038_auto_20180328_0146.py
Normal file
20
apps/map/migrations/0038_auto_20180328_0146.py
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
# Generated by Django 1.11.6 on 2018-03-28 01:46
|
||||||
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('map', '0037_auto_20180327_0549'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='casestudy',
|
||||||
|
name='sector_of_economy',
|
||||||
|
field=models.CharField(choices=[('RN', 'Renewable Energy Generation'), ('PG', 'Power Grids'), ('SM', 'Supply of Minerals')], help_text='Which sector of the renewable energy economy is most relevant?', max_length=3, verbose_name='Sector of economy'),
|
||||||
|
),
|
||||||
|
]
|
@ -30,11 +30,7 @@ class CaseStudy(models.Model):
|
|||||||
|
|
||||||
# Choice lists for drop-downs
|
# Choice lists for drop-downs
|
||||||
SECTOR_CHOICES = (
|
SECTOR_CHOICES = (
|
||||||
(_('Renewable Energy Generation'), (
|
('RN', _('Renewable Energy Generation')),
|
||||||
('WND', _('Wind')),
|
|
||||||
('SOL', _('Solar')),
|
|
||||||
('HYD', _('Hydro')),
|
|
||||||
)),
|
|
||||||
('PG', _('Power Grids')),
|
('PG', _('Power Grids')),
|
||||||
('SM', _('Supply of Minerals')),
|
('SM', _('Supply of Minerals')),
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user