|
List Info
Thread: Validators in a model's validator_list (m-r)
|
|
| Validators in a model's validator_list
(m-r) |

|
2006-04-25 14:13:41 |
|
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.
Regards
chris
On 4/25/06, Michael Radziej <noris.de">mir noris.de> wrote:
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_data and all_data.
That's because __call__() is a method, and self is really only the object itself. There's no problem with it (or I overlooked it 
What does your view look like, does it call get_validation_errors() at all? Or did you use generic views?
Michael
--~--~---------~--~----~------------~-------~--~----~
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 django-users-unsubscribe googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---
|
[1]
|
|
|
about | contact Other archives ( Real Estate discussion Medical topics )
|