Skip to content

Commit abe7267

Browse files
committed
Updated migration
1 parent e663fcb commit abe7267

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

migrations/0001_initial.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,17 @@ class Migration(migrations.Migration):
3838
("update_at", models.DateTimeField(auto_now=True)),
3939
("name", models.CharField(max_length=500)),
4040
("age", models.PositiveIntegerField(default=50)),
41-
("active", models.BooleanField(null=True)),
41+
(
42+
(
43+
"active",
44+
models.NullBooleanField(),
45+
)
46+
if django.VERSION < (3, 2)
47+
else (
48+
"active",
49+
models.BooleanField(null=True),
50+
)
51+
),
4252
],
4353
options={
4454
"verbose_name": "test model",

0 commit comments

Comments
 (0)