mirror of
https://github.com/django/django.git
synced 2025-06-17 17:39:16 +00:00
Refs #35676 -- Added supports_table_check_constraints skip to model_forms tests.
This commit is contained in:
parent
f2f6046c0f
commit
3306b7283b
@ -529,6 +529,7 @@ class ConstraintsModel(models.Model):
|
||||
price = models.DecimalField(max_digits=10, decimal_places=2, default=0)
|
||||
|
||||
class Meta:
|
||||
required_db_features = {"supports_table_check_constraints"}
|
||||
constraints = [
|
||||
models.UniqueConstraint(
|
||||
"name",
|
||||
|
@ -3721,6 +3721,7 @@ class ModelToDictTests(TestCase):
|
||||
self.assertEqual(data, [blue])
|
||||
|
||||
|
||||
@skipUnlessDBFeature("supports_table_check_constraints")
|
||||
class ConstraintValidationTests(TestCase):
|
||||
def test_unique_constraint_refs_excluded_field(self):
|
||||
obj = ConstraintsModel.objects.create(name="product", price="1.00")
|
||||
|
Loading…
x
Reference in New Issue
Block a user