Run isort/black on migrations

This commit is contained in:
Stefan Wehrmeyer 2022-11-23 12:31:25 +01:00
parent 2e8aaf699f
commit df26c50e12
10 changed files with 526 additions and 152 deletions

View file

@ -1,30 +1,68 @@
# Generated by Django 3.2.12 on 2022-03-17 14:54
from django.db import migrations, models
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cms', '0022_auto_20180620_1551'),
('publicbody', '0039_publicbody_alternative_emails'),
('froide_govplan', '0008_governmentplan_proposals'),
("cms", "0022_auto_20180620_1551"),
("publicbody", "0039_publicbody_alternative_emails"),
("froide_govplan", "0008_governmentplan_proposals"),
]
operations = [
migrations.CreateModel(
name='GovernmentPlanUpdatesCMSPlugin',
name="GovernmentPlanUpdatesCMSPlugin",
fields=[
('cmsplugin_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, related_name='froide_govplan_governmentplanupdatescmsplugin', serialize=False, to='cms.cmsplugin')),
('count', models.PositiveIntegerField(default=1, help_text='0 means all the updates', verbose_name='number of updates')),
('offset', models.PositiveIntegerField(default=0, help_text='number of updates to skip from top of list', verbose_name='offset')),
('categories', models.ManyToManyField(blank=True, to='publicbody.Category', verbose_name='categories')),
('government', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='froide_govplan.government')),
(
"cmsplugin_ptr",
models.OneToOneField(
auto_created=True,
on_delete=django.db.models.deletion.CASCADE,
parent_link=True,
primary_key=True,
related_name="froide_govplan_governmentplanupdatescmsplugin",
serialize=False,
to="cms.cmsplugin",
),
),
(
"count",
models.PositiveIntegerField(
default=1,
help_text="0 means all the updates",
verbose_name="number of updates",
),
),
(
"offset",
models.PositiveIntegerField(
default=0,
help_text="number of updates to skip from top of list",
verbose_name="offset",
),
),
(
"categories",
models.ManyToManyField(
blank=True, to="publicbody.Category", verbose_name="categories"
),
),
(
"government",
models.ForeignKey(
blank=True,
null=True,
on_delete=django.db.models.deletion.SET_NULL,
to="froide_govplan.government",
),
),
],
options={
'abstract': False,
"abstract": False,
},
bases=('cms.cmsplugin',),
bases=("cms.cmsplugin",),
),
]