def default_get_serializer_class(self):
    """
    Return the class to use for the serializer.
    Defaults to using `self.serializer_class`.

    You may want to override this if you need to provide different
    serializations depending on the incoming request.

    (Eg. admins get full serialization, others get basic serialization)
    """
    assert self.serializer_class is not None, (
            "'%s' should either include a `serializer_class` attribute, a `http_method_XXXX_serializer_class`, "
            "or override the `get_serializer_class()` method."
            % self.__class__.__name__
    )

    return self.serializer_class