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.
No comments:
Post a Comment