'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)'

def get_serializer_class(self):

    assert (self.serializer_class is not None), (u"'%s'    should    either    include    a    `serializer_class`    attribute,    or    override    the    `get_serializer_class()`    method." % self.__class__.__name__)
    return self.serializer_class
