attach serializer class to function based views