Run black over entire codebase

This commit is contained in:
2019-08-19 23:55:53 +02:00
parent fc7a9621a7
commit e3e3f6d5db
112 changed files with 8240 additions and 3214 deletions
+74 -15
View File
@@ -7,29 +7,88 @@ from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('map', '0012_auto_20171012_1610'),
]
dependencies = [("map", "0012_auto_20171012_1610")]
operations = [
migrations.AddField(
model_name='casestudy',
name='technical_or_economic_details',
field=models.CharField(blank=True, default=None, help_text='Specify any additional technical or economic details relating to the project.', max_length=500, null=True, verbose_name='Additional technical or economic details'),
model_name="casestudy",
name="technical_or_economic_details",
field=models.CharField(
blank=True,
default=None,
help_text="Specify any additional technical or economic details relating to the project.",
max_length=500,
null=True,
verbose_name="Additional technical or economic details",
),
),
migrations.AddField(
model_name='casestudy',
name='total_investment',
field=models.IntegerField(blank=True, default=None, help_text='The approximate total investment for the project in USD.', null=True, verbose_name='Total investment (in USD)'),
model_name="casestudy",
name="total_investment",
field=models.IntegerField(
blank=True,
default=None,
help_text="The approximate total investment for the project in USD.",
null=True,
verbose_name="Total investment (in USD)",
),
),
migrations.AlterField(
model_name='casestudy',
name='generation_technology',
field=models.CharField(blank=True, choices=[('Wind energy', (('SSWE', 'Small-scale (less than 500kW)'), ('LSWE', 'Large-scale (more than 500kW)'))), ('Photovoltaic electricity', (('SSPV', 'Small-scale (less than 500kW)'), ('LSPV', 'Large-scale (more than 500kW)'))), ('Hydroelectric', (('SHYD', 'Small-scale (less than 1MW)'), ('MHYD', 'Medium-scale (between 1-20MW)'), ('LHYD', 'Large-scale (more than 20MW - often not considered renewable)'))), ('STHE', 'Solar thermal electricity (e.g using parabolic reflectors)'), ('GEOT', 'Geothermal electricity'), ('BIOG', 'Biogas turbine'), ('OTHB', 'Other biomass (including liquid/solid biofuel)'), ('OTHR', 'Other (tidal, wave etc)')], default=None, help_text='Select the type of renewable energy generation that most applies to this case study.', max_length=4, null=True, verbose_name='Generation technology'),
model_name="casestudy",
name="generation_technology",
field=models.CharField(
blank=True,
choices=[
(
"Wind energy",
(
("SSWE", "Small-scale (less than 500kW)"),
("LSWE", "Large-scale (more than 500kW)"),
),
),
(
"Photovoltaic electricity",
(
("SSPV", "Small-scale (less than 500kW)"),
("LSPV", "Large-scale (more than 500kW)"),
),
),
(
"Hydroelectric",
(
("SHYD", "Small-scale (less than 1MW)"),
("MHYD", "Medium-scale (between 1-20MW)"),
(
"LHYD",
"Large-scale (more than 20MW - often not considered renewable)",
),
),
),
(
"STHE",
"Solar thermal electricity (e.g using parabolic reflectors)",
),
("GEOT", "Geothermal electricity"),
("BIOG", "Biogas turbine"),
("OTHB", "Other biomass (including liquid/solid biofuel)"),
("OTHR", "Other (tidal, wave etc)"),
],
default=None,
help_text="Select the type of renewable energy generation that most applies to this case study.",
max_length=4,
null=True,
verbose_name="Generation technology",
),
),
migrations.AlterField(
model_name='casestudy',
name='total_generation_capacity',
field=models.PositiveIntegerField(blank=True, default=None, help_text='Please enter the total generation capacity of the project in kW', null=True, verbose_name='Total generation capacity (in kW)'),
model_name="casestudy",
name="total_generation_capacity",
field=models.PositiveIntegerField(
blank=True,
default=None,
help_text="Please enter the total generation capacity of the project in kW",
null=True,
verbose_name="Total generation capacity (in kW)",
),
),
]