I have a django choice set which I display in a form :
PRIORITIES_CHOICES = (
(1, u'Low'),
(2, u'Medium'),
(3, u'High'),
(4, u'Critical'),
Now when I disable this choice in a form it provides a not selected option which looks like ——– and the value is “”. I would like to remove this field. How can I do it ?
Make the field requried and provide initial value. Non-required field should have a “not selected” choice.