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
- [Answered ]-Mail sent using send_mail() [Python – Django] does not send embedded images
- [Answered ]-Django date time filter?
Source:stackexchange.com