summaryrefslogtreecommitdiff
path: root/tests/inspectdb
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2017-05-06 10:56:28 -0400
committerTim Graham <timograham@gmail.com>2018-03-20 12:10:10 -0400
commit5fa4f40f45fcdbb7e48489ed3039a314b5c961d0 (patch)
tree272b8798d2c2a054f56d8613a42453bce30f92c0 /tests/inspectdb
parent73f7d1755ff1da3aac687c7b046e4b5028e505db (diff)
downloaddjango-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.py2
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()