Skip to content

Commit c5c3451

Browse files
committed
Formatting
1 parent d8fa06e commit c5c3451

File tree

1 file changed

+21
-10
lines changed

1 file changed

+21
-10
lines changed

netbox_custom_objects/migrations/0001_initial.py

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ class Migration(migrations.Migration):
2323
operations = [
2424
migrations.CreateModel(
2525
name="CustomObjectObjectType",
26-
fields=[
27-
],
26+
fields=[],
2827
options={
2928
"proxy": True,
3029
"indexes": [],
@@ -35,11 +34,17 @@ class Migration(migrations.Migration):
3534
migrations.CreateModel(
3635
name="CustomObjectType",
3736
fields=[
38-
("id", models.BigAutoField(auto_created=True, primary_key=True, serialize=False)),
37+
(
38+
"id",
39+
models.BigAutoField(
40+
auto_created=True, primary_key=True, serialize=False,
41+
)
42+
),
3943
("created", models.DateTimeField(auto_now_add=True, null=True)),
4044
("last_updated", models.DateTimeField(auto_now=True, null=True)),
4145
(
42-
"custom_field_data", models.JSONField(
46+
"custom_field_data",
47+
models.JSONField(
4348
blank=True,
4449
default=dict,
4550
encoder=utilities.json.CustomFieldJSONEncoder,
@@ -48,7 +53,8 @@ class Migration(migrations.Migration):
4853
("description", models.CharField(blank=True, max_length=200)),
4954
("comments", models.TextField(blank=True)),
5055
(
51-
"name", models.CharField(
56+
"name",
57+
models.CharField(
5258
max_length=100,
5359
unique=True,
5460
validators=[
@@ -96,7 +102,8 @@ class Migration(migrations.Migration):
96102
("type", models.CharField(default="text", max_length=50)),
97103
("primary", models.BooleanField(default=False)),
98104
(
99-
"name", models.CharField(
105+
"name",
106+
models.CharField(
100107
max_length=50,
101108
validators=[
102109
django.core.validators.RegexValidator(
@@ -126,7 +133,8 @@ class Migration(migrations.Migration):
126133
("validation_minimum", models.BigIntegerField(blank=True, null=True)),
127134
("validation_maximum", models.BigIntegerField(blank=True, null=True)),
128135
(
129-
"validation_regex", models.CharField(
136+
"validation_regex",
137+
models.CharField(
130138
blank=True,
131139
max_length=500,
132140
validators=[utilities.validators.validate_regex],
@@ -137,7 +145,8 @@ class Migration(migrations.Migration):
137145
("is_cloneable", models.BooleanField(default=False)),
138146
("comments", models.TextField(blank=True)),
139147
(
140-
"choice_set", models.ForeignKey(
148+
"choice_set",
149+
models.ForeignKey(
141150
blank=True,
142151
null=True,
143152
on_delete=django.db.models.deletion.PROTECT,
@@ -146,14 +155,16 @@ class Migration(migrations.Migration):
146155
),
147156
),
148157
(
149-
"custom_object_type", models.ForeignKey(
158+
"custom_object_type",
159+
models.ForeignKey(
150160
on_delete=django.db.models.deletion.CASCADE,
151161
related_name="fields",
152162
to="netbox_custom_objects.customobjecttype",
153163
),
154164
),
155165
(
156-
"related_object_type", models.ForeignKey(
166+
"related_object_type",
167+
models.ForeignKey(
157168
blank=True,
158169
null=True,
159170
on_delete=django.db.models.deletion.PROTECT,

0 commit comments

Comments
 (0)