raise a ValidationError exception with 2 arguments: return value of the function _ with an string argument 'Enter a valid integer.',
raise ValidationError ( _ ( 'Enter a valid integer.' ) , code = 'invalid' )