We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e862e68 commit ae5d90eCopy full SHA for ae5d90e
tests/basic/models.py
@@ -51,7 +51,7 @@ class PrimaryKeyWithDefault(models.Model):
51
52
53
class PrimaryKeyWithDbDefault(models.Model):
54
- uuid = models.IntegerField(primary_key=True, db_default=1)
+ uuid = models.IntegerField(primary_key=True, db_default=models.Value(1))
55
56
57
class ChildPrimaryKeyWithDefault(PrimaryKeyWithDefault):
0 commit comments