#NEWLINE# def get_input_required_errors( self ) : #NEWLINE# #INDENT# errors = [ ] #NEWLINE# if self . required : #NEWLINE# #INDENT# self . widget . attrs [ 'ng-required' ] = 'true' #NEWLINE# for ( key , msg ) in self . error_messages . items ( ) : #NEWLINE# #INDENT# if ( key == 'required' ) : #NEWLINE# #INDENT# errors . append ( ( '$error.required' , msg ) ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return errors