def validate ( self , value , model_instance , * * kwargs ) : self . get_choices_form_class ( ) . validate ( value , model_instance , * * kwargs )
custom validator python flaskform
This follows the validate rules for choices_form_class field used .
def validate(self, value, model_instance, **kwargs):
        """This follows the validate rules for choices_form_class field used.
        """
        self.get_choices_form_class().validate(value, model_instance, **kwargs)