>Have you looked at django.core.validators? There's one in there called
>RequiredIfOtherFieldNotGiven that might do what you want. You'd want
>to make both fields blank=True and add that validator to
>validator_list

Keep in mind that cross-field-validators only work on the main record,
not on possibly edit_inline'ed records. That's because they use the
field names to access them through all_data, but inlined records get
different field names (with the model they come from and a running
number attached to the field name). There is a patch with a hackish fix
for that problem in the ticket system.

bye, Georg

Reply via email to