#NEWLINE# def get_potential_errors( self ) : #NEWLINE# #INDENT# errors = self . get_input_required_errors ( ) #NEWLINE# self . widget . attrs [ 'ng-minlength' ] = 1 #NEWLINE# if ( hasattr ( self , 'max_digits' ) and ( self . max_digits > 0 ) ) : #NEWLINE# #INDENT# self . widget . attrs [ 'ng-maxlength' ] = ( self . max_digits + 1 ) #NEWLINE# #UNINDENT# errors . extend ( self . get_min_max_value_errors ( ) ) #NEWLINE# errors . extend ( self . get_invalid_value_errors ( 'number' ) ) #NEWLINE# return errors