The first check box has no value and is labeled '---------' is there
an option to have that not exist. I don't don't see a passable param
which would turn it off in either ModelChoiceField or
CheckboxSelectMultiple. Am I blind?
Vance
--
To pretend, I actually do the thing: I have therefore only pretended to pretend.
- Jacques Derrida
locations = forms.ModelChoiceField(Location.objects.all(),
widget=forms.CheckboxSelectMultiple(), initial='')
locations = forms.ModelChoiceField(Location.objects.all(),
widget=forms.CheckboxSelectMultiple(), initial=None)
no impact.
Vance
--
if option_value:
...
output.append(u'<li><label%s>%s %s</label></li>' % (label_for,
rendered_cb, option_label))
Vance
Vance