mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed #30581 -- Added support for Meta.constraints validation.
Thanks Simon Charette, Keryn Knight, and Mariusz Felisiak for reviews.
This commit is contained in:
@@ -38,6 +38,10 @@ class UniqueConstraintProduct(models.Model):
|
||||
]
|
||||
|
||||
|
||||
class ChildUniqueConstraintProduct(UniqueConstraintProduct):
|
||||
pass
|
||||
|
||||
|
||||
class UniqueConstraintConditionProduct(models.Model):
|
||||
name = models.CharField(max_length=255)
|
||||
color = models.CharField(max_length=32, null=True)
|
||||
|
||||
Reference in New Issue
Block a user