Add missing import in views.py to fix global name 'list_detail' is not defined errors