You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 22, 2020. It is now read-only.
If main serializer has any nested serializers except ListSerializer (it's handled correctly), fields of this sub-serializers doesn't shown on html page with api description.
What I Did
class PersonSerializer(serializers.Serializer):
first_name = serializers.CharField()
last_name = serializers.CharField()
class DocumentSerializer(serializers.Serializer):
doc_type= serializers.IntegerField()
number = serializers.CharField()
class CheckDocRequestSerializer(serializers.Serializer):
person = PersonSerializer()
documents = serializers.ListField(child=DocumentSerializer())
Main serializer is CheckDocRequestSerializer and in this case fields doc_type, number will be shown for DocumentSerializer but PersonSerializer will be described as object without any sub-elements.