Converted to use generic class based views

https://docs.djangoproject.com/en/1.4/topics/generic-views-migration/

Generic function based views were deprecated and replaced with generic class based views in Django 1.3.  Generic function based views were removed in Django 1.5.