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:
Aymeric Augustin 2014-05-07 22:03:10 +02:00
parent c70a61eb49
commit cff59bedc2
6 changed files with 12 additions and 6 deletions

View file

@ -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})