added support for rest framework libraries that specify their serializer with the serializer_class variable