mirror of
https://github.com/django/django.git
synced 2025-08-03 02:23:12 +00:00
Split ignores_nulls_in_unique_constraints feature.
Oracle and SQL Server don't have exactly the same limitations. It's worth treating them differently.
This commit is contained in:
parent
c70a61eb49
commit
cff59bedc2
6 changed files with 12 additions and 6 deletions
|
@ -650,7 +650,7 @@ class UniqueTest(TestCase):
|
|||
form = TripleForm({'left': '1', 'middle': '3', 'right': '1'})
|
||||
self.assertTrue(form.is_valid())
|
||||
|
||||
@skipUnlessDBFeature('ignores_nulls_in_unique_constraints')
|
||||
@skipUnlessDBFeature('supports_nullable_unique_constraints')
|
||||
def test_unique_null(self):
|
||||
title = 'I May Be Wrong But I Doubt It'
|
||||
form = BookForm({'title': title, 'author': self.writer.pk})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue