From fcd42a48190d395b8daea82acfc0609549a78705 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Mon, 4 Aug 2014 19:54:44 -0400 Subject: Removed code that assumed BooleanField could be null. Such a field will no longer pass model validation. --- tests/model_fields/tests.py | 3 --- 1 file changed, 3 deletions(-) (limited to 'tests/model_fields') diff --git a/tests/model_fields/tests.py b/tests/model_fields/tests.py index 64b848af7a..793538c791 100644 --- a/tests/model_fields/tests.py +++ b/tests/model_fields/tests.py @@ -259,9 +259,6 @@ class BooleanFieldTests(unittest.TestCase): formfield with the blank option (#9640, #10549). """ choices = [(1, 'Si'), (2, 'No')] - f = models.BooleanField(choices=choices, default=1, null=True) - self.assertEqual(f.formfield().choices, [('', '---------')] + choices) - f = models.BooleanField(choices=choices, default=1, null=False) self.assertEqual(f.formfield().choices, choices) -- cgit v1.3