[Answered ]-Django Forms, Display Error on ModelMultipleChoiceField

2đź‘Ť

Yeah, it sounds like you’re doing it wrong.

You should be using the clean_ method instead. Read through that whole document, in fact – it’s very informative.

👤SmileyChris

0đź‘Ť

Why are you instantiating an ErrorList and writing to self._errors directly? Calling “raise forms.ValidationError(msg)” takes care of all that already.

And what does your template look like?

👤Lawrence

Leave a comment