mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 09:36:49 +03:00
parent
014e24b024
commit
05b0c2adff
|
@ -138,7 +138,7 @@ class SimpleMetadata(BaseMetadata):
|
|||
field_info['children'] = self.get_serializer_info(field)
|
||||
|
||||
if (not field_info.get('read_only') and
|
||||
not isinstance(field, serializers.RelatedField) and
|
||||
not isinstance(field, (serializers.RelatedField, serializers.ManyRelatedField)) and
|
||||
hasattr(field, 'choices')):
|
||||
field_info['choices'] = [
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user