Run black over entire codebase
This commit is contained in:
@ -6,49 +6,192 @@ import multiselectfield.db.fields
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('map', '0078_latest_form_changes'),
|
||||
]
|
||||
dependencies = [("map", "0078_latest_form_changes")]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='community_voices',
|
||||
field=models.TextField(blank=True, help_text='Please add any direct quotes from members of the community that relate to this project.', verbose_name='Community Voices'),
|
||||
model_name="casestudy",
|
||||
name="community_voices",
|
||||
field=models.TextField(
|
||||
blank=True,
|
||||
help_text="Please add any direct quotes from members of the community that relate to this project.",
|
||||
verbose_name="Community Voices",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='generation_technology',
|
||||
field=models.CharField(blank=True, choices=[('BIO', 'Bio-energy'), ('GEOT', 'Geothermal electricity'), ('Hydro', (('uHYD', 'Micro hydro (<100kW)'), ('SHYD', 'Small-scale hydro (100kW-1MW)'), ('MHYD', 'Medium-scale hydro (1-30MW)'), ('LHYD', 'Large-scale hydro (>30MW - often not considered renewable)'))), ('Marine', (('WAVE', 'Wave'), ('TSTR', 'Tidal stream'), ('TBAR', 'Tidal barrage/lagoon'), ('TOTH', 'Other'))), ('Solar', (('SSPV', 'Small-scale photovoltaic (<500kW)'), ('LSPV', 'Large-scale photovoltaic (>500kW)'), ('CSP', 'Solar power tower'), ('PARA', 'Parabolic trough (open or enclosed)'), ('FRES', 'Fresnel reflector'), ('STIR', 'Dish Stirling'))), ('Wind', (('SSWE', 'Small-scale wind (<500kW)'), ('LSWE', 'Large-scale wind (>500kW)'))), ('OTHR', 'Other')], help_text='Please select the type of renewable energy generation that most applies to this case study.', max_length=4, verbose_name='Generation technology'),
|
||||
model_name="casestudy",
|
||||
name="generation_technology",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
choices=[
|
||||
("BIO", "Bio-energy"),
|
||||
("GEOT", "Geothermal electricity"),
|
||||
(
|
||||
"Hydro",
|
||||
(
|
||||
("uHYD", "Micro hydro (<100kW)"),
|
||||
("SHYD", "Small-scale hydro (100kW-1MW)"),
|
||||
("MHYD", "Medium-scale hydro (1-30MW)"),
|
||||
(
|
||||
"LHYD",
|
||||
"Large-scale hydro (>30MW - often not considered renewable)",
|
||||
),
|
||||
),
|
||||
),
|
||||
(
|
||||
"Marine",
|
||||
(
|
||||
("WAVE", "Wave"),
|
||||
("TSTR", "Tidal stream"),
|
||||
("TBAR", "Tidal barrage/lagoon"),
|
||||
("TOTH", "Other"),
|
||||
),
|
||||
),
|
||||
(
|
||||
"Solar",
|
||||
(
|
||||
("SSPV", "Small-scale photovoltaic (<500kW)"),
|
||||
("LSPV", "Large-scale photovoltaic (>500kW)"),
|
||||
("CSP", "Solar power tower"),
|
||||
("PARA", "Parabolic trough (open or enclosed)"),
|
||||
("FRES", "Fresnel reflector"),
|
||||
("STIR", "Dish Stirling"),
|
||||
),
|
||||
),
|
||||
(
|
||||
"Wind",
|
||||
(
|
||||
("SSWE", "Small-scale wind (<500kW)"),
|
||||
("LSWE", "Large-scale wind (>500kW)"),
|
||||
),
|
||||
),
|
||||
("OTHR", "Other"),
|
||||
],
|
||||
help_text="Please select the type of renewable energy generation that most applies to this case study.",
|
||||
max_length=4,
|
||||
verbose_name="Generation technology",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='manufacturing_factors',
|
||||
field=multiselectfield.db.fields.MultiSelectField(blank=True, choices=[('LAND', 'Land use'), ('LABOR', 'Labor rights'), ('ENVIRO', 'Environmental factors'), ('LIFECYCLE', 'Lifecycle management'), ('OWN', 'Ownership'), ('OTHER', 'Other(s)')], max_length=128, verbose_name='Please choose the factors that make this case remarkable, in a positive or negative way.'),
|
||||
model_name="casestudy",
|
||||
name="manufacturing_factors",
|
||||
field=multiselectfield.db.fields.MultiSelectField(
|
||||
blank=True,
|
||||
choices=[
|
||||
("LAND", "Land use"),
|
||||
("LABOR", "Labor rights"),
|
||||
("ENVIRO", "Environmental factors"),
|
||||
("LIFECYCLE", "Lifecycle management"),
|
||||
("OWN", "Ownership"),
|
||||
("OTHER", "Other(s)"),
|
||||
],
|
||||
max_length=128,
|
||||
verbose_name="Please choose the factors that make this case remarkable, in a positive or negative way.",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='manufacturing_related_tech',
|
||||
field=multiselectfield.db.fields.MultiSelectField(blank=True, choices=[('PV', 'Solar PV'), ('CSP', 'Concentrated solar power (CSP)'), ('WIND', 'Wind power'), ('HYDRO', 'Hydropower'), ('GEO', 'Geothermal'), ('TRANSMIT', 'Electrical power transmission infrastructure'), ('STORE', 'Energy storage'), ('HEAT', 'Heat networks'), ('OTHER', 'Other'), ('IDK', 'Unknown')], max_length=128, verbose_name='What technology is this case related to?'),
|
||||
model_name="casestudy",
|
||||
name="manufacturing_related_tech",
|
||||
field=multiselectfield.db.fields.MultiSelectField(
|
||||
blank=True,
|
||||
choices=[
|
||||
("PV", "Solar PV"),
|
||||
("CSP", "Concentrated solar power (CSP)"),
|
||||
("WIND", "Wind power"),
|
||||
("HYDRO", "Hydropower"),
|
||||
("GEO", "Geothermal"),
|
||||
("TRANSMIT", "Electrical power transmission infrastructure"),
|
||||
("STORE", "Energy storage"),
|
||||
("HEAT", "Heat networks"),
|
||||
("OTHER", "Other"),
|
||||
("IDK", "Unknown"),
|
||||
],
|
||||
max_length=128,
|
||||
verbose_name="What technology is this case related to?",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='name_of_territory_or_area',
|
||||
field=models.CharField(blank=True, max_length=512, verbose_name='Name of territory or area'),
|
||||
model_name="casestudy",
|
||||
name="name_of_territory_or_area",
|
||||
field=models.CharField(
|
||||
blank=True, max_length=512, verbose_name="Name of territory or area"
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='negative_case_reasons',
|
||||
field=multiselectfield.db.fields.MultiSelectField(blank=True, choices=[('VOLR', 'Violation of land rights'), ('VOHR', 'Violation of fundamental human rights, indigenous rights and/or other collective rights'), ('EIMP', 'Environmental impacts (severe impacts on ecosystems / violation of laws plans or programs of environmental conservation, etc.'), ('NCUL', 'Negative cultural impacts (erosion/destruction of bio-cultural heritage, impacts on sacred land, etc.)'), ('AGGR', 'Aggression/threats to community members opposed to the project, collaboration with organized crime, etc.'), ('ALAB', 'Abusive labour practices'), ('CRUP', 'Corruption and/or irregular permitting or contracting, conflicts of interest, etc.')], max_length=34, verbose_name='What kind of case is this entry about?'),
|
||||
model_name="casestudy",
|
||||
name="negative_case_reasons",
|
||||
field=multiselectfield.db.fields.MultiSelectField(
|
||||
blank=True,
|
||||
choices=[
|
||||
("VOLR", "Violation of land rights"),
|
||||
(
|
||||
"VOHR",
|
||||
"Violation of fundamental human rights, indigenous rights and/or other collective rights",
|
||||
),
|
||||
(
|
||||
"EIMP",
|
||||
"Environmental impacts (severe impacts on ecosystems / violation of laws plans or programs of environmental conservation, etc.",
|
||||
),
|
||||
(
|
||||
"NCUL",
|
||||
"Negative cultural impacts (erosion/destruction of bio-cultural heritage, impacts on sacred land, etc.)",
|
||||
),
|
||||
(
|
||||
"AGGR",
|
||||
"Aggression/threats to community members opposed to the project, collaboration with organized crime, etc.",
|
||||
),
|
||||
("ALAB", "Abusive labour practices"),
|
||||
(
|
||||
"CRUP",
|
||||
"Corruption and/or irregular permitting or contracting, conflicts of interest, etc.",
|
||||
),
|
||||
],
|
||||
max_length=34,
|
||||
verbose_name="What kind of case is this entry about?",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='type_of_ecosystem',
|
||||
field=multiselectfield.db.fields.MultiSelectField(blank=True, choices=[('MARINE', 'Marine (e.g. ocean, sea)'), ('FRESH', 'Freshwater (e.g. river, lake)'), ('FOREST', 'Forest/jungle'), ('AGRI', 'Agricultural land'), ('GRASS', 'Grassland'), ('DESERT', 'Desert (tundra, ice or sand)'), ('WETLND', 'Wetland (marsh, mangrove, peat Soil)'), ('URBAN', 'Urban')], max_length=56, verbose_name='Type(s) of ecosystem'),
|
||||
model_name="casestudy",
|
||||
name="type_of_ecosystem",
|
||||
field=multiselectfield.db.fields.MultiSelectField(
|
||||
blank=True,
|
||||
choices=[
|
||||
("MARINE", "Marine (e.g. ocean, sea)"),
|
||||
("FRESH", "Freshwater (e.g. river, lake)"),
|
||||
("FOREST", "Forest/jungle"),
|
||||
("AGRI", "Agricultural land"),
|
||||
("GRASS", "Grassland"),
|
||||
("DESERT", "Desert (tundra, ice or sand)"),
|
||||
("WETLND", "Wetland (marsh, mangrove, peat Soil)"),
|
||||
("URBAN", "Urban"),
|
||||
],
|
||||
max_length=56,
|
||||
verbose_name="Type(s) of ecosystem",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='use_in_energy_economy',
|
||||
field=multiselectfield.db.fields.MultiSelectField(blank=True, choices=[('CPV', 'Concentrated solar power (CSP) tower'), ('EPT', 'Electrical power transmission/distribution infrastructure'), ('ESS', 'Energy storage'), ('GGM', 'Geothermal'), ('HGM', 'Hydropower'), ('HNT', 'Heat networks'), ('SPM', 'Solar photovoltaic'), ('STM', 'Solar thermal systems'), ('WTM', 'Wind power'), ('ESS', "Don't know"), ('OTR', 'Other')], max_length=128, verbose_name='Potential use in renewable energy economy'),
|
||||
model_name="casestudy",
|
||||
name="use_in_energy_economy",
|
||||
field=multiselectfield.db.fields.MultiSelectField(
|
||||
blank=True,
|
||||
choices=[
|
||||
("CPV", "Concentrated solar power (CSP) tower"),
|
||||
(
|
||||
"EPT",
|
||||
"Electrical power transmission/distribution infrastructure",
|
||||
),
|
||||
("ESS", "Energy storage"),
|
||||
("GGM", "Geothermal"),
|
||||
("HGM", "Hydropower"),
|
||||
("HNT", "Heat networks"),
|
||||
("SPM", "Solar photovoltaic"),
|
||||
("STM", "Solar thermal systems"),
|
||||
("WTM", "Wind power"),
|
||||
("ESS", "Don't know"),
|
||||
("OTR", "Other"),
|
||||
],
|
||||
max_length=128,
|
||||
verbose_name="Potential use in renewable energy economy",
|
||||
),
|
||||
),
|
||||
]
|
||||
|
Reference in New Issue
Block a user