#NEWLINE# @ login_required #NEWLINE# @ permission_required ( 'waitinglist.manage_cohorts' ) #NEWLINE# def cohort_send_invitations( request , pk ) : #NEWLINE# #INDENT# cohort = Cohort . objects . get ( pk = pk ) #NEWLINE# cohort . send_invitations ( ) #NEWLINE# return redirect ( 'waitinglist_cohort_detail' , pk . id )