Loading tests/inspectdb/tests.py +8 −2 Original line number Diff line number Diff line Loading @@ -89,10 +89,16 @@ class InspectDBTestCase(TestCase): if connection.features.can_introspect_boolean_field: assertFieldType('bool_field', "models.BooleanField()") if connection.features.can_introspect_null: assertFieldType('null_bool_field', "models.NullBooleanField()") else: assertFieldType('null_bool_field', "models.BooleanField()") else: assertFieldType('bool_field', "models.IntegerField()") if connection.features.can_introspect_null: assertFieldType('null_bool_field', "models.IntegerField(blank=True, null=True)") else: assertFieldType('null_bool_field', "models.IntegerField()") if connection.vendor == 'sqlite': # Guessed arguments on SQLite, see #5014 Loading Loading
tests/inspectdb/tests.py +8 −2 Original line number Diff line number Diff line Loading @@ -89,10 +89,16 @@ class InspectDBTestCase(TestCase): if connection.features.can_introspect_boolean_field: assertFieldType('bool_field', "models.BooleanField()") if connection.features.can_introspect_null: assertFieldType('null_bool_field', "models.NullBooleanField()") else: assertFieldType('null_bool_field', "models.BooleanField()") else: assertFieldType('bool_field', "models.IntegerField()") if connection.features.can_introspect_null: assertFieldType('null_bool_field', "models.IntegerField(blank=True, null=True)") else: assertFieldType('null_bool_field', "models.IntegerField()") if connection.vendor == 'sqlite': # Guessed arguments on SQLite, see #5014 Loading