Re: Validators in a model's validator_list (m-r)

2006-04-26 Thread Christian Schneider
Good morning,On 4/25/06, Michael Radziej <[EMAIL PROTECTED]> wrote: I don't know what you mean with "stop". I think each validator will beexecuted, but they will take into account whether record_type has theright value.Anyway, I personally give up :-( You can try to find out what's happening:- crea

Re: Validators in a model's validator_list (m-r)

2006-04-25 Thread Christian Schneider
On 4/25/06, Michael Radziej <[EMAIL PROTECTED]> wrote: Christian Schneider wrote:> 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 hop

Re: Validators in a model's validator_list (m-r)

2006-04-25 Thread Michael Radziej
Christian Schneider wrote: > 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 >>> ob

Re: Validators in a model's validator_list (m-r)

2006-04-25 Thread Christian Schneider
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 para

Re: Validators in a model's validator_list (m-r)

2006-04-25 Thread Michael Radziej
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

Re: Validators in a model's validator_list (m-r)

2006-04-25 Thread Christian Schneider
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.Regardschris On 4/25/06, Michael Radziej <[EMAIL PROTECTED]> wrote: Christian Schneider wrote:> However, no matter what value re

Re: Validators in a model's validator_list (m-r)

2006-04-25 Thread Michael Radziej
Christian Schneider wrote: > However, no matter what value recording_type has, the validator is not > called. What I find funny is that the validator's __call__ method takes > three values (self, field_data, all_data) while custom validator functions > specified with validator_list take only field

Validators in a model's validator_list (m-r)

2006-04-25 Thread Christian Schneider
Hi all,I want to specify some dependencies in my model (magic removal) and want to use django.core.validators.RequiredIfOtherFieldEquals for that.My model contains the following code:from django.core import validatorsrecording_type = models.IntegerField(    choices=RECORDING_TYPE_CHOICES,