Re: validator_list and newforms.models.form_for_model

2007-07-04 Thread Jeremy Dunck
On 7/4/07, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > I haven't given this a ton of thought, but my own opinion is that > validator_list should go away, in favor of custom Field subclasses > that know how to validate themselves, and/or validate_FOO() method > hooks on the model. Basically, it wo

Re: validator_list and newforms.models.form_for_model

2007-07-04 Thread Adrian Holovaty
On 7/4/07, Jeremy Dunck <[EMAIL PROTECTED]> wrote: > Is validator_list going away entirely, or is it desirable for > form_for_model to implement the needed clean method based on the > validator_list's of the form fields? I haven't given this a ton of thought, but my own opinion is that validator_

Re: validator_list and newforms.models.form_for_model

2007-07-04 Thread Jeremy Dunck
On 7/4/07, Jeremy Dunck <[EMAIL PROTECTED]> wrote: > Is validator_list going away entirely, or is it desirable for > form_for_model to implement the needed clean method based on the > validator_list's of the form fields? FWIW, I've read this thread, but it doesn't appear to have a definite decis

validator_list and newforms.models.form_for_model

2007-07-04 Thread Jeremy Dunck
I understand how newforms validation occurs (Field.clean, Form.clean_FIELD, Form.clean). However, people (myself included) are surprised that newforms form_for_model doesn't include validators from validator_list in the generated Form.clean method. Is validator_list going away entirely, or is it