On 4/25/06, Michael Radziej <[EMAIL PROTECTED]> wrote:

Christian Schneider wrote:
> Michael,
>
> I'm still using a generic view. I played with some custom functions before
> and they were called so I'd hoped that it would work with the validator
> objects as well.

I looked in the source. Aha! First parameter to RequiredIfOtherField is
the *name* of the field (a string, not a field).

Please try and report ...

nothing's happening, :-(

Even if it worked would validation stop if the referenced field didn't have the required value? That is: Field 1 is required when field 2 has value "x" and field 2's value is "y". Field 1 is blank which it should be allowed to but would validation stop after evaluating the RequiredIfOtherField validator runs (if it even runs first)?
 

By the way, where did you find any documentation about this at all?

someone on IRC told me there were some validators in validators.py, so I had a look. And as the documentation for validator_list in models says it has to be a list of callables I thought I'll try my luck.

Thanks and regards

chris


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to