Skip to content

Commit

Permalink
prevent basic test from requiring DatabaseFeatures.supports_expressio…
Browse files Browse the repository at this point in the history
…n_defaults
  • Loading branch information
timgraham committed Sep 23, 2024
1 parent 128cba4 commit 5552927
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/basic/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 5552927

Please sign in to comment.