Simon Litchfield schrieb:
> I tend to think there needs to be a documented, 'clean' way of adding
> non_field_errors (and even field errors too) to forms, *outside* the
> clean() methods.
>
>
I had this idea some time ago, too. There is a patch
with documentation and unittest:
I tend to think there needs to be a documented, 'clean' way of adding
non_field_errors (and even field errors too) to forms, *outside* the
clean() methods.
Currently, I believe the only 'right' way to add errors is by raising
a ValidationError. This is suitable for 'contained' and relatively