mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +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:
parent
441103a04d
commit
667105877e
17 changed files with 852 additions and 88 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue