/ Published in: Django
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
class ReviewForm(forms.Form): rating = forms.ChoiceField(choices=STARS, error_messages={'required': 'Please choose a star rating'}) note = forms.CharField(widget=forms.Textarea(),)