code: def get_nested_relation_kwargs(field_name, relation_info):
      
      kwargs = get_relation_kwargs(field_name, relation_info)
      kwargs.pop('queryset')
      kwargs.pop('required')
      kwargs['read_only'] = True
      return kwargs
docs: Creating a default instance of a nested serializer