Fix 1.2.1 to be a single choice instead of three (#43)

This commit is contained in:
Anna Sidwell 2018-03-28 13:21:18 +11:00
parent b7f2be8b3e
commit 946ec52119
2 changed files with 21 additions and 5 deletions

View 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'),
),
]

View File

@ -30,11 +30,7 @@ class CaseStudy(models.Model):
# Choice lists for drop-downs
SECTOR_CHOICES = (
(_('Renewable Energy Generation'), (
('WND', _('Wind')),
('SOL', _('Solar')),
('HYD', _('Hydro')),
)),
('RN', _('Renewable Energy Generation')),
('PG', _('Power Grids')),
('SM', _('Supply of Minerals')),
)