def use_model_attr(attr):
    """Use the validator set on a separate attribute on the class."""

    def use_model_validator(instance, attribute, value):
        getattr(instance, attr)(instance, attribute, value)
    return use_model_validator