diff options
| author | Tim Graham <timograham@gmail.com> | 2017-05-06 10:56:28 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2018-03-20 12:10:10 -0400 |
| commit | 5fa4f40f45fcdbb7e48489ed3039a314b5c961d0 (patch) | |
| tree | 272b8798d2c2a054f56d8613a42453bce30f92c0 /tests/invalid_models_tests | |
| parent | 73f7d1755ff1da3aac687c7b046e4b5028e505db (diff) | |
Fixed #29227 -- Allowed BooleanField to be null=True.
Thanks Lynn Cyrin for contributing to the patch, and Nick Pope for review.
Diffstat (limited to 'tests/invalid_models_tests')
| -rw-r--r-- | tests/invalid_models_tests/test_ordinary_fields.py | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/tests/invalid_models_tests/test_ordinary_fields.py b/tests/invalid_models_tests/test_ordinary_fields.py index a3c3a70808..2411abc930 100644 --- a/tests/invalid_models_tests/test_ordinary_fields.py +++ b/tests/invalid_models_tests/test_ordinary_fields.py @@ -39,24 +39,6 @@ class AutoFieldTests(SimpleTestCase): @isolate_apps('invalid_models_tests') -class BooleanFieldTests(SimpleTestCase): - - def test_nullable_boolean_field(self): - class Model(models.Model): - field = models.BooleanField(null=True) - - field = Model._meta.get_field('field') - self.assertEqual(field.check(), [ - Error( - 'BooleanFields do not accept null values.', - hint='Use a NullBooleanField instead.', - obj=field, - id='fields.E110', - ), - ]) - - -@isolate_apps('invalid_models_tests') class CharFieldTests(TestCase): def test_valid_field(self): |
