Le mardi 16 janvier 2018 16:37:29 UTC+1, smarie a écrit :

    validate is_foo_compliant(x) or is_bar_compliant(x) ValidationError(message)

This was a typo in this case since we use the base ValidationError it even would simplify to

        validate is_foo_compliant(x) or is_bar_compliant(x), message