Fix bug 856118: Switch to using class-based generic views.
Merge pull request #1153 from ubernostrum/class-based-views-856118

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