Fix bug 856118: Switch to using class-based generic views.