Skip to content

Commit fa05d5e

Browse files
committed
black
1 parent 613e54e commit fa05d5e

File tree

2 files changed

+36
-38
lines changed

2 files changed

+36
-38
lines changed

example/products/migrations/0001_initial.py

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,43 +8,42 @@ class Migration(migrations.Migration):
88

99
initial = True
1010

11-
dependencies = [
12-
]
11+
dependencies = []
1312

1413
operations = [
1514
migrations.CreateModel(
16-
name='Category',
15+
name="Category",
1716
fields=[
18-
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
19-
('name', models.CharField(max_length=255)),
17+
("id", models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name="ID")),
18+
("name", models.CharField(max_length=255)),
2019
],
2120
),
2221
migrations.CreateModel(
23-
name='Partner',
22+
name="Partner",
2423
fields=[
25-
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
26-
('name', models.CharField(max_length=255)),
24+
("id", models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name="ID")),
25+
("name", models.CharField(max_length=255)),
2726
],
2827
),
2928
migrations.CreateModel(
30-
name='Product',
29+
name="Product",
3130
fields=[
32-
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
33-
('name', models.CharField(max_length=255)),
34-
('category', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='products.Category')),
35-
('partners', models.ManyToManyField(to='products.Partner')),
31+
("id", models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name="ID")),
32+
("name", models.CharField(max_length=255)),
33+
("category", models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to="products.Category")),
34+
("partners", models.ManyToManyField(to="products.Partner")),
3635
],
3736
),
3837
migrations.CreateModel(
39-
name='Supplier',
38+
name="Supplier",
4039
fields=[
41-
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
42-
('name', models.CharField(max_length=255)),
40+
("id", models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name="ID")),
41+
("name", models.CharField(max_length=255)),
4342
],
4443
),
4544
migrations.AddField(
46-
model_name='product',
47-
name='supplier',
48-
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='products.Supplier'),
45+
model_name="product",
46+
name="supplier",
47+
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to="products.Supplier"),
4948
),
5049
]

tests/migrations/0001_initial.py

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,43 +8,42 @@ class Migration(migrations.Migration):
88

99
initial = True
1010

11-
dependencies = [
12-
]
11+
dependencies = []
1312

1413
operations = [
1514
migrations.CreateModel(
16-
name='Category',
15+
name="Category",
1716
fields=[
18-
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
19-
('name', models.CharField(max_length=255)),
17+
("id", models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name="ID")),
18+
("name", models.CharField(max_length=255)),
2019
],
2120
),
2221
migrations.CreateModel(
23-
name='Partner',
22+
name="Partner",
2423
fields=[
25-
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
26-
('name', models.CharField(max_length=255)),
24+
("id", models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name="ID")),
25+
("name", models.CharField(max_length=255)),
2726
],
2827
),
2928
migrations.CreateModel(
30-
name='Product',
29+
name="Product",
3130
fields=[
32-
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
33-
('name', models.CharField(max_length=255)),
34-
('category', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='tests.Category')),
35-
('partners', models.ManyToManyField(to='tests.Partner')),
31+
("id", models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name="ID")),
32+
("name", models.CharField(max_length=255)),
33+
("category", models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to="tests.Category")),
34+
("partners", models.ManyToManyField(to="tests.Partner")),
3635
],
3736
),
3837
migrations.CreateModel(
39-
name='Supplier',
38+
name="Supplier",
4039
fields=[
41-
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
42-
('name', models.CharField(max_length=255)),
40+
("id", models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name="ID")),
41+
("name", models.CharField(max_length=255)),
4342
],
4443
),
4544
migrations.AddField(
46-
model_name='product',
47-
name='supplier',
48-
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='tests.Supplier'),
45+
model_name="product",
46+
name="supplier",
47+
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to="tests.Supplier"),
4948
),
5049
]

0 commit comments

Comments
 (0)