Hi,
I have a list of checkboxes rendered automatically by django. It's a
list of the months of the year so the user can say when a shop is
opened. It works well but the design is not that great in the page so
instead of having all the checkboxes rendered as <ul> I would like to
have the control of every checkbox the same way I can control the
fields of a form (that can be displayed as a <ul> too but that can be
overridden).
so I have:
in my forms.py (a modelForm):
months_open = forms.MultipleChoiceField(choices = MONTH_LIST,
widget=forms.CheckboxSelectMultiple)
in my template:
{{ form.months_open }}
it is rendered as:
<ul>
<li>...
Do you think there is a way I can use something like
{{ form.months_open.month1 }} ?
thank you,
Bastien
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---