Fix, function views to class-based views for Django 1.5+