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 7db81be commit 71cd8f7Copy full SHA for 71cd8f7
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