1
- # Generated by Django 5.0 on 2023-12-13 20:24
1
+ # Generated by Django 5.0.2 on 2024-03-03 06:40
2
2
3
+ import django .db .models .functions .text
3
4
import django_enum .fields
4
- import django_enum .tests .djenum .enums
5
5
from django .db import migrations , models
6
6
7
7
@@ -33,7 +33,7 @@ class Migration(migrations.Migration):
33
33
(2 , "Value 2" ),
34
34
(32767 , "Value 32767" ),
35
35
],
36
- db_default = models . Value ( None ) ,
36
+ db_default = None ,
37
37
null = True ,
38
38
),
39
39
),
@@ -48,7 +48,7 @@ class Migration(migrations.Migration):
48
48
(2 , "Value 2" ),
49
49
(32767 , "Value 32767" ),
50
50
],
51
- db_default = models . Value ( 32767 ) ,
51
+ db_default = 32767 ,
52
52
),
53
53
),
54
54
(
@@ -61,7 +61,7 @@ class Migration(migrations.Migration):
61
61
(2 , "Value 2" ),
62
62
(2147483647 , "Value 2147483647" ),
63
63
],
64
- db_default = models . Value ( 2147483647 ) ,
64
+ db_default = 2147483647 ,
65
65
),
66
66
),
67
67
(
@@ -75,7 +75,7 @@ class Migration(migrations.Migration):
75
75
(2 , "Value 2" ),
76
76
(2147483647 , "Value 2147483647" ),
77
77
],
78
- db_default = models . Value ( - 2147483648 ) ,
78
+ db_default = - 2147483648 ,
79
79
null = True ,
80
80
),
81
81
),
@@ -89,7 +89,7 @@ class Migration(migrations.Migration):
89
89
(2 , "Value 2" ),
90
90
(2147483648 , "Value 2147483648" ),
91
91
],
92
- db_default = models . Value ( None ) ,
92
+ db_default = None ,
93
93
null = True ,
94
94
),
95
95
),
@@ -103,7 +103,7 @@ class Migration(migrations.Migration):
103
103
(2 , "Value 2" ),
104
104
(2147483648 , "Value 2147483648" ),
105
105
],
106
- db_default = models . Value ( - 2147483649 ) ,
106
+ db_default = - 2147483649 ,
107
107
),
108
108
),
109
109
(
@@ -115,7 +115,7 @@ class Migration(migrations.Migration):
115
115
(2.71828 , "Euler's Number" ),
116
116
(1.618033988749895 , "Golden Ratio" ),
117
117
],
118
- db_default = models . Value ( 1.618033988749895 ) ,
118
+ db_default = 1.618033988749895 ,
119
119
null = True ,
120
120
),
121
121
),
@@ -129,7 +129,7 @@ class Migration(migrations.Migration):
129
129
("V333" , "Value3" ),
130
130
("D" , "Default" ),
131
131
],
132
- db_default = models . Value ( "" ) ,
132
+ db_default = "" ,
133
133
max_length = 4 ,
134
134
),
135
135
),
@@ -143,7 +143,9 @@ class Migration(migrations.Migration):
143
143
("V333" , "Value3" ),
144
144
("D" , "Default" ),
145
145
],
146
- db_default = models .Value ("db_default" ),
146
+ db_default = django .db .models .functions .text .Concat (
147
+ models .Value ("db" ), models .Value ("_default" )
148
+ ),
147
149
default = "" ,
148
150
max_length = 10 ,
149
151
),
@@ -158,22 +160,22 @@ class Migration(migrations.Migration):
158
160
("V333" , "Value3" ),
159
161
("D" , "Default" ),
160
162
],
161
- db_default = models . Value ( "V22" ) ,
163
+ db_default = "V22" ,
162
164
default = "D" ,
163
165
max_length = 10 ,
164
166
),
165
167
),
166
168
(
167
169
"char_field" ,
168
170
models .CharField (
169
- blank = True , db_default = models . Value ( "db_default" ) , max_length = 10
171
+ blank = True , db_default = "db_default" , max_length = 10
170
172
),
171
173
),
172
174
(
173
175
"doubled_char_field" ,
174
176
models .CharField (
175
177
blank = True ,
176
- db_default = models . Value ( "db_default" ) ,
178
+ db_default = "db_default" ,
177
179
default = "default" ,
178
180
max_length = 10 ,
179
181
),
@@ -183,24 +185,21 @@ class Migration(migrations.Migration):
183
185
django_enum .fields .EnumPositiveSmallIntegerField (
184
186
blank = True ,
185
187
choices = [(1 , "ONE" ), (2 , "TWO" ), (3 , "THREE" )],
186
- db_default = models .Value (
187
- django_enum .tests .djenum .enums .ExternEnum ["THREE" ]
188
- ),
188
+ db_default = 3 ,
189
189
null = True ,
190
190
),
191
191
),
192
192
(
193
193
"dj_int_enum" ,
194
194
django_enum .fields .EnumPositiveSmallIntegerField (
195
- choices = [(1 , "One" ), (2 , "Two" ), (3 , "Three" )],
196
- db_default = models .Value (1 ),
195
+ choices = [(1 , "One" ), (2 , "Two" ), (3 , "Three" )], db_default = 1
197
196
),
198
197
),
199
198
(
200
199
"dj_text_enum" ,
201
200
django_enum .fields .EnumCharField (
202
201
choices = [("A" , "Label A" ), ("B" , "Label B" ), ("C" , "Label C" )],
203
- db_default = models . Value ( "A" ) ,
202
+ db_default = "A" ,
204
203
max_length = 1 ,
205
204
),
206
205
),
@@ -213,7 +212,7 @@ class Migration(migrations.Migration):
213
212
(2 , "Value 2" ),
214
213
(32767 , "Value 32767" ),
215
214
],
216
- db_default = models . Value ( 5 ) ,
215
+ db_default = 5 ,
217
216
null = True ,
218
217
),
219
218
),
@@ -227,7 +226,7 @@ class Migration(migrations.Migration):
227
226
("V333" , "Value3" ),
228
227
("D" , "Default" ),
229
228
],
230
- db_default = models . Value ( "arbitrary" ) ,
229
+ db_default = "arbitrary" ,
231
230
max_length = 12 ,
232
231
),
233
232
),
@@ -240,7 +239,7 @@ class Migration(migrations.Migration):
240
239
(2 , "Value 2" ),
241
240
(32767 , "Value 32767" ),
242
241
],
243
- db_default = models . Value ( 2 ) ,
242
+ db_default = 2 ,
244
243
null = True ,
245
244
),
246
245
),
@@ -253,7 +252,7 @@ class Migration(migrations.Migration):
253
252
(2 , "Value 2" ),
254
253
(32767 , "Value 32767" ),
255
254
],
256
- db_default = models . Value ( 32767 ) ,
255
+ db_default = 32767 ,
257
256
null = True ,
258
257
),
259
258
),
@@ -266,7 +265,7 @@ class Migration(migrations.Migration):
266
265
(2 , "Value 2" ),
267
266
(32767 , "Value 32767" ),
268
267
],
269
- db_default = models . Value ( None ) ,
268
+ db_default = None ,
270
269
null = True ,
271
270
),
272
271
),
0 commit comments