Posted By

martin_rusev on 01/16/10


Tagged

forms django


Versions (?)

Custom validation message


 / Published in: Django
 

  1. class ReviewForm(forms.Form):
  2. rating = forms.ChoiceField(choices=STARS, error_messages={'required': 'Please choose a star rating'})
  3. note = forms.CharField(widget=forms.Textarea(),)

Report this snippet  

You need to login to post a comment.