Migrate function-based generic views for django 1.6.6