6
6
7
7
8
8
class Migration (migrations .Migration ):
9
-
10
9
replaces = [
11
10
('circuits' , '0038_cabling_cleanup' ),
12
11
('circuits' , '0039_unique_constraints' ),
13
12
('circuits' , '0040_provider_remove_deprecated_fields' ),
14
13
('circuits' , '0041_standardize_description_comments' ),
15
- ('circuits' , '0042_provideraccount' )
14
+ ('circuits' , '0042_provideraccount' ),
16
15
]
17
16
18
17
dependencies = [
@@ -51,11 +50,15 @@ class Migration(migrations.Migration):
51
50
),
52
51
migrations .AddConstraint (
53
52
model_name = 'circuittermination' ,
54
- constraint = models .UniqueConstraint (fields = ('circuit' , 'term_side' ), name = 'circuits_circuittermination_unique_circuit_term_side' ),
53
+ constraint = models .UniqueConstraint (
54
+ fields = ('circuit' , 'term_side' ), name = 'circuits_circuittermination_unique_circuit_term_side'
55
+ ),
55
56
),
56
57
migrations .AddConstraint (
57
58
model_name = 'providernetwork' ,
58
- constraint = models .UniqueConstraint (fields = ('provider' , 'name' ), name = 'circuits_providernetwork_unique_provider_name' ),
59
+ constraint = models .UniqueConstraint (
60
+ fields = ('provider' , 'name' ), name = 'circuits_providernetwork_unique_provider_name'
61
+ ),
59
62
),
60
63
migrations .RemoveField (
61
64
model_name = 'provider' ,
@@ -84,12 +87,20 @@ class Migration(migrations.Migration):
84
87
('id' , models .BigAutoField (auto_created = True , primary_key = True , serialize = False )),
85
88
('created' , models .DateTimeField (auto_now_add = True , null = True )),
86
89
('last_updated' , models .DateTimeField (auto_now = True , null = True )),
87
- ('custom_field_data' , models .JSONField (blank = True , default = dict , encoder = utilities .json .CustomFieldJSONEncoder )),
90
+ (
91
+ 'custom_field_data' ,
92
+ models .JSONField (blank = True , default = dict , encoder = utilities .json .CustomFieldJSONEncoder ),
93
+ ),
88
94
('description' , models .CharField (blank = True , max_length = 200 )),
89
95
('comments' , models .TextField (blank = True )),
90
96
('account' , models .CharField (max_length = 100 )),
91
97
('name' , models .CharField (blank = True , max_length = 100 )),
92
- ('provider' , models .ForeignKey (on_delete = django .db .models .deletion .PROTECT , related_name = 'accounts' , to = 'circuits.provider' )),
98
+ (
99
+ 'provider' ,
100
+ models .ForeignKey (
101
+ on_delete = django .db .models .deletion .PROTECT , related_name = 'accounts' , to = 'circuits.provider'
102
+ ),
103
+ ),
93
104
('tags' , taggit .managers .TaggableManager (through = 'extras.TaggedItem' , to = 'extras.Tag' )),
94
105
],
95
106
options = {
@@ -98,11 +109,17 @@ class Migration(migrations.Migration):
98
109
),
99
110
migrations .AddConstraint (
100
111
model_name = 'provideraccount' ,
101
- constraint = models .UniqueConstraint (condition = models .Q (('name' , '' ), _negated = True ), fields = ('provider' , 'name' ), name = 'circuits_provideraccount_unique_provider_name' ),
112
+ constraint = models .UniqueConstraint (
113
+ condition = models .Q (('name' , '' ), _negated = True ),
114
+ fields = ('provider' , 'name' ),
115
+ name = 'circuits_provideraccount_unique_provider_name' ,
116
+ ),
102
117
),
103
118
migrations .AddConstraint (
104
119
model_name = 'provideraccount' ,
105
- constraint = models .UniqueConstraint (fields = ('provider' , 'account' ), name = 'circuits_provideraccount_unique_provider_account' ),
120
+ constraint = models .UniqueConstraint (
121
+ fields = ('provider' , 'account' ), name = 'circuits_provideraccount_unique_provider_account'
122
+ ),
106
123
),
107
124
migrations .RemoveField (
108
125
model_name = 'provider' ,
@@ -111,7 +128,13 @@ class Migration(migrations.Migration):
111
128
migrations .AddField (
112
129
model_name = 'circuit' ,
113
130
name = 'provider_account' ,
114
- field = models .ForeignKey (blank = True , null = True , on_delete = django .db .models .deletion .PROTECT , related_name = 'circuits' , to = 'circuits.provideraccount' ),
131
+ field = models .ForeignKey (
132
+ blank = True ,
133
+ null = True ,
134
+ on_delete = django .db .models .deletion .PROTECT ,
135
+ related_name = 'circuits' ,
136
+ to = 'circuits.provideraccount' ,
137
+ ),
115
138
preserve_default = False ,
116
139
),
117
140
migrations .AlterModelOptions (
@@ -120,6 +143,8 @@ class Migration(migrations.Migration):
120
143
),
121
144
migrations .AddConstraint (
122
145
model_name = 'circuit' ,
123
- constraint = models .UniqueConstraint (fields = ('provider_account' , 'cid' ), name = 'circuits_circuit_unique_provideraccount_cid' ),
146
+ constraint = models .UniqueConstraint (
147
+ fields = ('provider_account' , 'cid' ), name = 'circuits_circuit_unique_provideraccount_cid'
148
+ ),
124
149
),
125
150
]
0 commit comments