forms.py
class MyForm(forms.Form): no = forms.CharField(error_messages={'required': u'must be xxx')
template.html
{{form.no.error}}
{{form.no.error}} <ul class="errorlist"><li>must be xxx</li></ul> I want to format {{form.no.error}} into a text message without any html tags
source share