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

@ -13,35 +13,60 @@ class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
dependencies = [migrations.swappable_dependency(settings.AUTH_USER_MODEL)]
operations = [
migrations.CreateModel(
name='CaseStudy',
name="CaseStudy",
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('location', django.contrib.gis.db.models.fields.PointField(srid=4326)),
('project_name', models.CharField(max_length=128)),
('supply_chain', models.CharField(choices=[('A', 'Option A'), ('B', 'Option B')], max_length=1)),
('generation_type', models.CharField(choices=[('W', 'Wind'), ('S', 'Solar')], max_length=1)),
('associated_companies', models.CharField(max_length=128)),
('financiers', models.CharField(max_length=128)),
('important_lenders', models.CharField(max_length=128)),
('country', django_countries.fields.CountryField(max_length=2)),
('affects_indigenous', models.BooleanField()),
('affects_indigenous_reason', models.TextField()),
('proposed_start', models.DateField()),
('proposed_completion', models.DateField()),
('description', models.TextField()),
('link_to_forum', models.URLField()),
('image', models.ImageField(upload_to='')),
('references', models.TextField()),
('commodities', models.CharField(max_length=128)),
('like_to_engage_developer', models.BooleanField()),
('like_to_engage_investors', models.BooleanField()),
('author', models.ForeignKey(blank=True, editable=False, null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL)),
(
"id",
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("location", django.contrib.gis.db.models.fields.PointField(srid=4326)),
("project_name", models.CharField(max_length=128)),
(
"supply_chain",
models.CharField(
choices=[("A", "Option A"), ("B", "Option B")], max_length=1
),
),
(
"generation_type",
models.CharField(
choices=[("W", "Wind"), ("S", "Solar")], max_length=1
),
),
("associated_companies", models.CharField(max_length=128)),
("financiers", models.CharField(max_length=128)),
("important_lenders", models.CharField(max_length=128)),
("country", django_countries.fields.CountryField(max_length=2)),
("affects_indigenous", models.BooleanField()),
("affects_indigenous_reason", models.TextField()),
("proposed_start", models.DateField()),
("proposed_completion", models.DateField()),
("description", models.TextField()),
("link_to_forum", models.URLField()),
("image", models.ImageField(upload_to="")),
("references", models.TextField()),
("commodities", models.CharField(max_length=128)),
("like_to_engage_developer", models.BooleanField()),
("like_to_engage_investors", models.BooleanField()),
(
"author",
models.ForeignKey(
blank=True,
editable=False,
null=True,
on_delete=django.db.models.deletion.SET_NULL,
to=settings.AUTH_USER_MODEL,
),
),
],
),
)
]