def get_serializer(instance, plugin=None, model=None, *args, **kwargs):
    """
    :param instance: model instance or queryset
    :param plugin: plugin instance that is used to get serializer for
    :param model: plugin model we build serializer for
    :param kwargs: kwargs like many and other
    :return:
    """
    serializer_class = get_serializer_class(plugin=plugin, model=model)
    if 'read_only' not in kwargs:
        kwargs['read_only'] = True
    return serializer_class(instance, *args, **kwargs)
:param instance: model instance or queryset
    :param plugin: plugin instance that is used to get serializer for
    :param model: plugin model we build serializer for
    :param kwargs: kwargs like many and other
    :return: