Convert generic FBVs to CBVs

Replace deprecated function based generic views with class based generic
views.