diff --git a/tests/basic/models.py b/tests/basic/models.py index cd89643140..49779ff2fd 100644 --- a/tests/basic/models.py +++ b/tests/basic/models.py @@ -51,7 +51,7 @@ class PrimaryKeyWithDefault(models.Model): class PrimaryKeyWithDbDefault(models.Model): - uuid = models.IntegerField(primary_key=True, db_default=1) + uuid = models.IntegerField(primary_key=True, db_default=models.Value(1)) class ChildPrimaryKeyWithDefault(PrimaryKeyWithDefault):