1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Refs #29227 -- Made inspectdb generate BooleanField(null=True) rather than NullBooleanField.

This commit is contained in:
Tim Graham
2018-03-16 10:52:04 -04:00
parent 5fa4f40f45
commit 6421bd702f
6 changed files with 13 additions and 36 deletions

View File

@@ -476,10 +476,7 @@ class SchemaTests(TransactionTestCase):
columns = self.column_classes(Author)
# BooleanField are stored as TINYINT(1) on MySQL.
field_type = columns['awesome'][0]
self.assertEqual(
field_type,
connection.features.introspected_boolean_field_type(new_field)
)
self.assertEqual(field_type, connection.features.introspected_boolean_field_type)
def test_add_field_default_transform(self):
"""