#NEWLINE# def form_invalid( self , form ) : #NEWLINE# #INDENT# messages . error ( self . request , _ ( 'An error occurred during submitting this form.' ) ) #NEWLINE# return super ( DynamicFormView , self ) . form_invalid ( self )