mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #35638 -- Updated validate_constraints to consider db_default.
This commit is contained in:
committed by
Sarah Boyce
parent
91a038754b
commit
509763c799
@@ -130,7 +130,7 @@ class LineSavedSearch(PostgreSQLModel):
|
||||
|
||||
|
||||
class RangesModel(PostgreSQLModel):
|
||||
ints = IntegerRangeField(blank=True, null=True)
|
||||
ints = IntegerRangeField(blank=True, null=True, db_default=(5, 10))
|
||||
bigints = BigIntegerRangeField(blank=True, null=True)
|
||||
decimals = DecimalRangeField(blank=True, null=True)
|
||||
timestamps = DateTimeRangeField(blank=True, null=True)
|
||||
|
||||
Reference in New Issue
Block a user