Run black over entire codebase

This commit is contained in:
2019-08-19 23:37:32 +02:00
parent fc7a9621a7
commit e3e3f6d5db
112 changed files with 8240 additions and 3214 deletions

View File

@ -7,159 +7,228 @@ from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('map', '0004_auto_20171006_1559'),
]
dependencies = [("map", "0004_auto_20171006_1559")]
operations = [
migrations.RemoveField(
model_name='casestudy',
name='Affects Indigenous - Details',
model_name="casestudy", name="Affects Indigenous - Details"
),
migrations.RemoveField(
model_name='casestudy',
name='Affects indigenous people?',
),
migrations.RemoveField(
model_name='casestudy',
name='Approximate land area',
),
migrations.RemoveField(
model_name='casestudy',
name='Community Voices',
),
migrations.RemoveField(
model_name='casestudy',
name='Describe the ecosystem',
),
migrations.RemoveField(
model_name='casestudy',
name='Entry Name',
),
migrations.RemoveField(
model_name='casestudy',
name='Full Description',
),
migrations.RemoveField(
model_name='casestudy',
name='Land ownership',
),
migrations.RemoveField(
model_name='casestudy',
name='Land ownership details',
),
migrations.RemoveField(
model_name='casestudy',
name='Location',
),
migrations.RemoveField(
model_name='casestudy',
name='Positive or negative?',
),
migrations.RemoveField(
model_name='casestudy',
name='Sector of economy',
),
migrations.RemoveField(
model_name='casestudy',
name='Status of Project',
),
migrations.RemoveField(
model_name='casestudy',
name='Synopsis',
),
migrations.RemoveField(
model_name='casestudy',
name='Type of ecosystem',
model_name="casestudy", name="Affects indigenous people?"
),
migrations.RemoveField(model_name="casestudy", name="Approximate land area"),
migrations.RemoveField(model_name="casestudy", name="Community Voices"),
migrations.RemoveField(model_name="casestudy", name="Describe the ecosystem"),
migrations.RemoveField(model_name="casestudy", name="Entry Name"),
migrations.RemoveField(model_name="casestudy", name="Full Description"),
migrations.RemoveField(model_name="casestudy", name="Land ownership"),
migrations.RemoveField(model_name="casestudy", name="Land ownership details"),
migrations.RemoveField(model_name="casestudy", name="Location"),
migrations.RemoveField(model_name="casestudy", name="Positive or negative?"),
migrations.RemoveField(model_name="casestudy", name="Sector of economy"),
migrations.RemoveField(model_name="casestudy", name="Status of Project"),
migrations.RemoveField(model_name="casestudy", name="Synopsis"),
migrations.RemoveField(model_name="casestudy", name="Type of ecosystem"),
migrations.AddField(
model_name='casestudy',
name='affects_indigenous',
field=models.BooleanField(default=None, help_text='Does the project affect indigenous people?', verbose_name='Affects indigenous people?'),
model_name="casestudy",
name="affects_indigenous",
field=models.BooleanField(
default=None,
help_text="Does the project affect indigenous people?",
verbose_name="Affects indigenous people?",
),
preserve_default=False,
),
migrations.AddField(
model_name='casestudy',
name='affects_indigenous_detail',
field=models.CharField(default=None, help_text='What group of indigenous people does the community belong to?', max_length=256, verbose_name='Affects Indigenous - Details'),
model_name="casestudy",
name="affects_indigenous_detail",
field=models.CharField(
default=None,
help_text="What group of indigenous people does the community belong to?",
max_length=256,
verbose_name="Affects Indigenous - Details",
),
preserve_default=False,
),
migrations.AddField(
model_name='casestudy',
name='area_of_land',
field=models.IntegerField(default=None, help_text='The area of land covered by the project (in km²)', verbose_name='Approximate land area'),
model_name="casestudy",
name="area_of_land",
field=models.IntegerField(
default=None,
help_text="The area of land covered by the project (in km²)",
verbose_name="Approximate land area",
),
preserve_default=False,
),
migrations.AddField(
model_name='casestudy',
name='community_voices',
field=models.TextField(default=None, help_text='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(
default=None,
help_text="Add any direct quotes from members of the community that relate to this project",
verbose_name="Community Voices",
),
preserve_default=False,
),
migrations.AddField(
model_name='casestudy',
name='describe_ecosystem',
field=models.CharField(default=None, help_text='In your own words, add more detail about the ecosystem.', max_length=256, verbose_name='Describe the ecosystem'),
model_name="casestudy",
name="describe_ecosystem",
field=models.CharField(
default=None,
help_text="In your own words, add more detail about the ecosystem.",
max_length=256,
verbose_name="Describe the ecosystem",
),
preserve_default=False,
),
migrations.AddField(
model_name='casestudy',
name='entry_name',
field=models.CharField(default=None, help_text='Enter the name of the entry. This should usually be the name of project.', max_length=128, verbose_name='Entry Name'),
model_name="casestudy",
name="entry_name",
field=models.CharField(
default=None,
help_text="Enter the name of the entry. This should usually be the name of project.",
max_length=128,
verbose_name="Entry Name",
),
preserve_default=False,
),
migrations.AddField(
model_name='casestudy',
name='full_description',
field=models.TextField(default=None, help_text='Describe the project in full. Separate paragraphs with a new line Please add as much detail as you feel is necessary here.', verbose_name='Full Description'),
model_name="casestudy",
name="full_description",
field=models.TextField(
default=None,
help_text="Describe the project in full. Separate paragraphs with a new line Please add as much detail as you feel is necessary here.",
verbose_name="Full Description",
),
preserve_default=False,
),
migrations.AddField(
model_name='casestudy',
name='land_ownership',
field=models.CharField(choices=[('PRI', 'Private Land'), ('PUB', 'Public Land'), ('COM', 'Community Land'), ('OTH', 'Other')], default=None, help_text='What type of ownership does the land fall under?', max_length=3, verbose_name='Land ownership'),
model_name="casestudy",
name="land_ownership",
field=models.CharField(
choices=[
("PRI", "Private Land"),
("PUB", "Public Land"),
("COM", "Community Land"),
("OTH", "Other"),
],
default=None,
help_text="What type of ownership does the land fall under?",
max_length=3,
verbose_name="Land ownership",
),
preserve_default=False,
),
migrations.AddField(
model_name='casestudy',
name='land_ownership_details',
field=models.CharField(default=None, help_text='Add any details and other remarks about the land ownership', max_length=256, verbose_name='Land ownership details'),
model_name="casestudy",
name="land_ownership_details",
field=models.CharField(
default=None,
help_text="Add any details and other remarks about the land ownership",
max_length=256,
verbose_name="Land ownership details",
),
preserve_default=False,
),
migrations.AddField(
model_name='casestudy',
name='location_context',
field=models.CharField(choices=[('RUR', 'Rural'), ('URB', 'Urban')], default=None, help_text='Select the context that is most applicable to this case study.', max_length=1, verbose_name='Location'),
model_name="casestudy",
name="location_context",
field=models.CharField(
choices=[("RUR", "Rural"), ("URB", "Urban")],
default=None,
help_text="Select the context that is most applicable to this case study.",
max_length=1,
verbose_name="Location",
),
preserve_default=False,
),
migrations.AddField(
model_name='casestudy',
name='positive_or_negative',
field=models.CharField(choices=[('POS', 'Positive'), ('NEG', 'Negative')], default=None, help_text='Is the case study a positive case or a negative case?', max_length=1, verbose_name='Positive or negative?'),
model_name="casestudy",
name="positive_or_negative",
field=models.CharField(
choices=[("POS", "Positive"), ("NEG", "Negative")],
default=None,
help_text="Is the case study a positive case or a negative case?",
max_length=1,
verbose_name="Positive or negative?",
),
preserve_default=False,
),
migrations.AddField(
model_name='casestudy',
name='project_status',
field=models.CharField(choices=[('EXSTNG', 'Existing Project'), ('UCONST', 'Under Construction'), ('PROJCD', 'Projected Project')], default=None, help_text='What is the status of the current project?', max_length=6, verbose_name='Status of Project'),
model_name="casestudy",
name="project_status",
field=models.CharField(
choices=[
("EXSTNG", "Existing Project"),
("UCONST", "Under Construction"),
("PROJCD", "Projected Project"),
],
default=None,
help_text="What is the status of the current project?",
max_length=6,
verbose_name="Status of Project",
),
preserve_default=False,
),
migrations.AddField(
model_name='casestudy',
name='sector_of_economy',
field=models.CharField(choices=[('Renewable Energy Generation', (('WND', 'Wind'), ('SOL', 'Solar'), ('HYD', 'Hydro'))), ('PG', 'Power Grids'), ('SM', 'Supply of Minerals')], default=None, help_text='Which sector of the renewable energy economy is most relevant?', max_length=2, verbose_name='Sector of economy'),
model_name="casestudy",
name="sector_of_economy",
field=models.CharField(
choices=[
(
"Renewable Energy Generation",
(("WND", "Wind"), ("SOL", "Solar"), ("HYD", "Hydro")),
),
("PG", "Power Grids"),
("SM", "Supply of Minerals"),
],
default=None,
help_text="Which sector of the renewable energy economy is most relevant?",
max_length=2,
verbose_name="Sector of economy",
),
preserve_default=False,
),
migrations.AddField(
model_name='casestudy',
name='synopsis',
field=models.TextField(default=None, help_text='Briefly describe the project. This will be displayed at the top of the case study page. Maximum 500 chars (about 3½ tweets)', max_length=500, verbose_name='Synopsis'),
model_name="casestudy",
name="synopsis",
field=models.TextField(
default=None,
help_text="Briefly describe the project. This will be displayed at the top of the case study page. Maximum 500 chars (about 3½ tweets)",
max_length=500,
verbose_name="Synopsis",
),
preserve_default=False,
),
migrations.AddField(
model_name='casestudy',
name='type_of_ecosystem',
field=models.CharField(choices=[('Water Based', (('MARINE', 'Marine (e.g. Ocean, Sea)'), ('FRESH', 'Freshwater (e.g. Freshwater, Lake)'))), ('Land Based', (('FOREST', 'Forest/Jungle'), ('AGRI', 'Agricultural Land'), ('GRASS', 'Grassland'), ('DESERT', 'Desert (Tundra, Ice or Sand)'), ('WETLND', 'Wetland (Marsh, Mangrove, Peat Soil)'), ('URBAN', 'Urban')))], default=None, help_text='Select the most relevant type of ecosystem.', max_length=6, verbose_name='Type of ecosystem'),
model_name="casestudy",
name="type_of_ecosystem",
field=models.CharField(
choices=[
(
"Water Based",
(
("MARINE", "Marine (e.g. Ocean, Sea)"),
("FRESH", "Freshwater (e.g. Freshwater, Lake)"),
),
),
(
"Land Based",
(
("FOREST", "Forest/Jungle"),
("AGRI", "Agricultural Land"),
("GRASS", "Grassland"),
("DESERT", "Desert (Tundra, Ice or Sand)"),
("WETLND", "Wetland (Marsh, Mangrove, Peat Soil)"),
("URBAN", "Urban"),
),
),
],
default=None,
help_text="Select the most relevant type of ecosystem.",
max_length=6,
verbose_name="Type of ecosystem",
),
preserve_default=False,
),
]