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.
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:
>
>
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
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
4 matches
Mail list logo