Skip to content

Commit cd62f55

Browse files
committed
prevent basic test from requiring DatabaseFeatures.supports_expression_defaults
1 parent 807c665 commit cd62f55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/basic/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class PrimaryKeyWithDefault(models.Model):
5151

5252

5353
class PrimaryKeyWithDbDefault(models.Model):
54-
uuid = models.IntegerField(primary_key=True, db_default=1)
54+
uuid = models.IntegerField(primary_key=True, db_default=models.Value(1))
5555

5656

5757
class ChildPrimaryKeyWithDefault(PrimaryKeyWithDefault):

0 commit comments

Comments
 (0)