KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
PLANNING_CHOICES = ( ('0',u'Every morning'), ('1',u'Every night'), ('2',u'Never'), ) planning = forms.ChoiceField(required=True, choices = PLANNING_CHOICES) Having a such form field named planning, I need to add title attribute to choices and in the end renders as this: <select> <option value="0" title="bla1">Every morning</option> <option value="1" title="bla2">Every night</option> <option value="2" title="bla3">Never</option> </select> How can it be achieved ?
Tags (comma-separated)
Save Edits
Cancel