Methods

Attributes

Class: OnlyIf

Validator for when a set of fields may have values only if every field in another set does.

It is strongly recommended that an alternative message be provided to instances of this validator, as the default message is not (and cannot be) very meaningful.

Methods

validate (self, subject)

Raise ValidationError if one or more contingent field has a value without all required field also having values.

Attributes

Value of

None