call the method validators.MaxLengthValidator with max_length converted into an integer, append the result to list self.validators.
self . validators . append ( validators . MaxLengthValidator ( int ( max_length ) ) )