summaryrefslogtreecommitdiff
path: root/tests/validation/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/validation/models.py')
-rw-r--r--tests/validation/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/validation/models.py b/tests/validation/models.py
index f6b1e0cd62..beec524758 100644
--- a/tests/validation/models.py
+++ b/tests/validation/models.py
@@ -48,7 +48,7 @@ class ModelToValidate(models.Model):
class UniqueFieldsModel(models.Model):
unique_charfield = models.CharField(max_length=100, unique=True)
- unique_integerfield = models.IntegerField(unique=True)
+ unique_integerfield = models.IntegerField(unique=True, db_default=42)
non_unique_field = models.IntegerField()