Re: formset - how to set a from error from formset.clean?

2015-01-29 Thread Richard Brockie
Following up - this did the trick. Thanks for the pointer. R. On Mon, Jan 19, 2015 at 10:40 AM, Richard Brockie wrote: > Thank you - that looks like what I am looking for! I don't know how I > missed that. > > I'm on 1.6 right now - another reason to move to 1.7 :) > > R.

Re: formset - how to set a from error from formset.clean?

2015-01-19 Thread Richard Brockie
Thank you - that looks like what I am looking for! I don't know how I missed that. I'm on 1.6 right now - another reason to move to 1.7 :) R. On Mon, Jan 19, 2015 at 9:16 AM, Collin Anderson wrote: > Hi, > > You might be able to do something like: > >

Re: formset - how to set a from error from formset.clean?

2015-01-19 Thread Collin Anderson
Hi, You might be able to do something like: self.forms[3].add_error('field_name', 'error message') https://docs.djangoproject.com/en/dev/ref/forms/api/#django.forms.Form.add_error Collin On Saturday, January 17, 2015 at 10:46:27 PM UTC-5, Richard Brockie wrote: > > Hi everyone, > > In a

formset - how to set a from error from formset.clean?

2015-01-17 Thread Richard Brockie
Hi everyone, In a formset I can use the .clean() method to validate data across the formset. The formset.clean() method is run after all the form.clean() methods - this makes sense. Raising a formset ValidationError alerts the user to the problem with formset.non_form_errors. I would like to