mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-28 00:49:49 +03:00
BooleanField with allow_null True
This commit is contained in:
parent
1acbaf2ee7
commit
a0bf3114b6
|
@ -311,7 +311,7 @@ class TestMetadata:
|
|||
class TestSimpleMetadataFieldInfo(TestCase):
|
||||
def test_null_boolean_field_info_type(self):
|
||||
options = metadata.SimpleMetadata()
|
||||
field_info = options.get_field_info(serializers.NullBooleanField())
|
||||
field_info = options.get_field_info(serializers.BooleanField(allow_null=True))
|
||||
assert field_info['type'] == 'boolean'
|
||||
|
||||
def test_related_field_choices(self):
|
||||
|
|
Loading…
Reference in New Issue
Block a user