Form Error List

14 views
Skip to first unread message

Matthew Pava

unread,
Jun 23, 2017, 5:31:29 PM6/23/17
to django...@googlegroups.com

I was just running into an issue where I append an error to _non_form_errors in a formset.  (Maybe I should re-think that.)

Anyway, it happens in the clean method, and I end up calling the clean method twice.  Lo and behold, the error message gets appended twice and the user sees a duplicate error message.

Then I got to thinking, why isn’t _non_form_errors  a set?  And I thought maybe you guys had a thought about this.  It would seem superfluous to have the same error message listed more than once in the error list.

Reply all
Reply to author
Forward
0 new messages