@@ -23,8 +23,7 @@ class Migration(migrations.Migration):
23
23
operations = [
24
24
migrations .CreateModel (
25
25
name = "CustomObjectObjectType" ,
26
- fields = [
27
- ],
26
+ fields = [],
28
27
options = {
29
28
"proxy" : True ,
30
29
"indexes" : [],
@@ -35,11 +34,17 @@ class Migration(migrations.Migration):
35
34
migrations .CreateModel (
36
35
name = "CustomObjectType" ,
37
36
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
+ ),
39
43
("created" , models .DateTimeField (auto_now_add = True , null = True )),
40
44
("last_updated" , models .DateTimeField (auto_now = True , null = True )),
41
45
(
42
- "custom_field_data" , models .JSONField (
46
+ "custom_field_data" ,
47
+ models .JSONField (
43
48
blank = True ,
44
49
default = dict ,
45
50
encoder = utilities .json .CustomFieldJSONEncoder ,
@@ -48,7 +53,8 @@ class Migration(migrations.Migration):
48
53
("description" , models .CharField (blank = True , max_length = 200 )),
49
54
("comments" , models .TextField (blank = True )),
50
55
(
51
- "name" , models .CharField (
56
+ "name" ,
57
+ models .CharField (
52
58
max_length = 100 ,
53
59
unique = True ,
54
60
validators = [
@@ -96,7 +102,8 @@ class Migration(migrations.Migration):
96
102
("type" , models .CharField (default = "text" , max_length = 50 )),
97
103
("primary" , models .BooleanField (default = False )),
98
104
(
99
- "name" , models .CharField (
105
+ "name" ,
106
+ models .CharField (
100
107
max_length = 50 ,
101
108
validators = [
102
109
django .core .validators .RegexValidator (
@@ -126,7 +133,8 @@ class Migration(migrations.Migration):
126
133
("validation_minimum" , models .BigIntegerField (blank = True , null = True )),
127
134
("validation_maximum" , models .BigIntegerField (blank = True , null = True )),
128
135
(
129
- "validation_regex" , models .CharField (
136
+ "validation_regex" ,
137
+ models .CharField (
130
138
blank = True ,
131
139
max_length = 500 ,
132
140
validators = [utilities .validators .validate_regex ],
@@ -137,7 +145,8 @@ class Migration(migrations.Migration):
137
145
("is_cloneable" , models .BooleanField (default = False )),
138
146
("comments" , models .TextField (blank = True )),
139
147
(
140
- "choice_set" , models .ForeignKey (
148
+ "choice_set" ,
149
+ models .ForeignKey (
141
150
blank = True ,
142
151
null = True ,
143
152
on_delete = django .db .models .deletion .PROTECT ,
@@ -146,14 +155,16 @@ class Migration(migrations.Migration):
146
155
),
147
156
),
148
157
(
149
- "custom_object_type" , models .ForeignKey (
158
+ "custom_object_type" ,
159
+ models .ForeignKey (
150
160
on_delete = django .db .models .deletion .CASCADE ,
151
161
related_name = "fields" ,
152
162
to = "netbox_custom_objects.customobjecttype" ,
153
163
),
154
164
),
155
165
(
156
- "related_object_type" , models .ForeignKey (
166
+ "related_object_type" ,
167
+ models .ForeignKey (
157
168
blank = True ,
158
169
null = True ,
159
170
on_delete = django .db .models .deletion .PROTECT ,
0 commit comments