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/inspectdb | |
parent | 73f7d1755ff1da3aac687c7b046e4b5028e505db (diff) | |
download | django-5fa4f40f45fcdbb7e48489ed3039a314b5c961d0.tar.gz |
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/inspectdb')
-rw-r--r-- | tests/inspectdb/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/inspectdb/models.py b/tests/inspectdb/models.py index 1a001b653e..8c660658cd 100644 --- a/tests/inspectdb/models.py +++ b/tests/inspectdb/models.py @@ -44,7 +44,7 @@ class ColumnTypes(models.Model): id = models.AutoField(primary_key=True) big_int_field = models.BigIntegerField() bool_field = models.BooleanField(default=False) - null_bool_field = models.NullBooleanField() + null_bool_field = models.BooleanField(null=True) char_field = models.CharField(max_length=10) null_char_field = models.CharField(max_length=10, blank=True, null=True) date_field = models.DateField() |