mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Removed DatabaseFeatures.can_introspect_null.
The only known usage is in the unmaintained django-pymssql project.
This commit is contained in:
parent
362813d628
commit
f8b98f0edc
3 changed files with 2 additions and 13 deletions
|
@ -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)")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue