Correcting problems on generic_views.py