raise an ValidationError with 2 arguments: value under the 'max_length' key of the self.error_messages dictionary and code set to 'max_length'.
raise ValidationError ( self . error_messages [ 'max_length' ] , code = 'max_length' , params = params )