#NEWLINE# @ login_required #NEWLINE# @ permission_required ( 'waitinglist.manage_cohorts' ) #NEWLINE# def cohort_detail( request , pk ) : #NEWLINE# #INDENT# cohort = get_object_or_404 ( Cohort , pk = waiting_list ) #NEWLINE# waiting_list = WaitingListEntry . objects . exclude ( email__in = SignupCode . objects . values ( 'email' ) ) . exclude ( email__in = User . objects . values ( 'email' ) ) #NEWLINE# ctx = { #NEWLINE# #INDENT# 'cohort' : cohort , #NEWLINE# 'waiting_list' : waiting_list , #NEWLINE# #UNINDENT# } #NEWLINE# return render ( request , 'cohorts/cohort_detail.html' , ctx )