Fix global name 'list_detail' is not defined errors in  views.py

Add missing import in views.py to fix global name 'list_detail' is not defined errors.  May be a django version specific problem, but the fix shouldn't cause problems.