#NEWLINE# def form_valid( self , form ) : #NEWLINE# #INDENT# transition = self . get_workflow_instance ( ) . workflow . transitions . get ( pk = transition . cleaned_data [ 'transition' ] ) #NEWLINE# self . get_workflow_instance ( ) . do_transition ( comment = form . cleaned_data [ 'comment' ] , transition = transition , user = self . request . user ) #NEWLINE# return HttpResponseRedirect ( self . get_success_url ( ) )