#NEWLINE# def pend( self , view_name , user ) : #NEWLINE# #INDENT# form_hash = self . hash_data ( ) #NEWLINE# pended_form = journalmanager_models . PendedForm . objects . get_or_create ( view_name = view_name , form_hash = form_hash , user = user ) [ 0 ] #NEWLINE# for ( name , values ) in self . data . lists ( ) : #NEWLINE# #INDENT# for value in values : #NEWLINE# #INDENT# pended_form . data . get_or_create ( name = name , value = value ) #NEWLINE# #UNINDENT# #UNINDENT# if ( self . data . get ( 'form_hash' , None ) and ( self . data [ 'form_hash' ] != 'None' ) ) : #NEWLINE# #INDENT# journalmanager_models . PendedForm . objects . get ( form_hash = self . data [ 'form_hash' ] ) . delete ( ) #NEWLINE# #UNINDENT# return values