mirror of
https://github.com/django/django.git
synced 2025-08-10 05:48:15 +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
|
@ -146,10 +146,6 @@ class PerformUniqueChecksTest(TestCase):
|
|||
mtv = ModelToValidate(number=10, name="Some Name")
|
||||
mtv.full_clean()
|
||||
|
||||
def test_func_unique_check_not_performed(self):
|
||||
with self.assertNumQueries(0):
|
||||
UniqueFuncConstraintModel(field="some name").full_clean()
|
||||
|
||||
def test_unique_for_date(self):
|
||||
Post.objects.create(
|
||||
title="Django 1.0 is released",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue