mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-04 20:40:14 +03:00
push serialzer metadata into field info for field re #2915
This commit is contained in:
parent
6b08e97b6a
commit
3f21dd1796
|
@ -143,4 +143,7 @@ class SimpleMetadata(BaseMetadata):
|
|||
for choice_value, choice_name in field.choices.items()
|
||||
]
|
||||
|
||||
if issubclass(type(field), serializers.Serializer):
|
||||
field_info['nested_object'] = self.get_serializer_info(field)
|
||||
|
||||
return field_info
|
||||
|
|
Loading…
Reference in New Issue
Block a user