attach serializer class to function based views

For documentation purposes, we need to be able to attach serializers to function-based views.

ariovistus/django-rest-swagger#67