mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Removed DatabaseFeatures.can_introspect_null.
The only known usage is in the unmaintained django-pymssql project.
This commit is contained in:
@@ -104,10 +104,7 @@ class InspectDBTestCase(TestCase):
|
||||
if 'BooleanField' in null_bool_field_type:
|
||||
assertFieldType('null_bool_field', "models.{}()".format(null_bool_field_type))
|
||||
else:
|
||||
if connection.features.can_introspect_null:
|
||||
assertFieldType('null_bool_field', "models.{}(blank=True, null=True)".format(null_bool_field_type))
|
||||
else:
|
||||
assertFieldType('null_bool_field', "models.{}()".format(null_bool_field_type))
|
||||
assertFieldType('null_bool_field', "models.{}(blank=True, null=True)".format(null_bool_field_type))
|
||||
|
||||
if connection.features.can_introspect_decimal_field:
|
||||
assertFieldType('decimal_field', "models.DecimalField(max_digits=6, decimal_places=1)")
|
||||
|
||||
Reference in New Issue
Block a user