I'm having an issue getting validation error messages to display for a particular field in a Django form, where the field in question is a ModelMultipleChoiceField.
In the clean(self)
method for the Form, I try to add the error message to the field like so:
msg = 'error'
self._errors['field_name'] = ErrorList([msg])
raise forms.ValidationError(msg)
This works okay where 'field_name' points to other field types, but for ModelMultipleChoiceField it just won't display. Should this be handled differently?