Re: Allow validators to short-circuit in form field validation

2016-09-26 Thread Aymeric Augustin
Note that I made this comment in reaction to Alexey’s email here :-) -- Aymeric. > On 26 Sep 2016, at 14:34, charettes wrote: > > Hi Alexey, > > I'm not sure I understand why the approach Aymeric suggested is not viable for > your use case. > > It can be implemented in

Re: Allow validators to short-circuit in form field validation

2016-09-26 Thread charettes
Hi Alexey, I'm not sure I understand why the approach Aymeric suggested is not viable for your use case. It can be implemented in a few lines and doesn't require any modification to Django core. class ShortCircuitValidator(object): def __init__(self, *validators): self.validators

Allow validators to short-circuit in form field validation

2016-09-26 Thread Alexey Rogachev
I opened ticket https://code.djangoproject.com/ticket/27263. Do you think the solution I suggested in comment is OK? -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop