AFAIK you can't change your select box's options ordering. You should do it by changing MONTH_LIST directly.
On Jun 15, 11:38 am, Bastien <bastien.roche...@gmail.com> wrote: > Hi, > > I have a multi choice field to choose 1 or many months in checkboxes: > > in forms.py: > months_open = forms.MultipleChoiceField(choices = MONTH_LIST, > widget=forms.CheckboxSelectMultiple) > > then in my template I use {{ form.months_open }} to make the list > appear. Now that works but the list appears as a raw list without > style so I would like to change the order of the months but don't know > how to access them. I tried things like {{ form.months_open.1 }} or > {{ form.months_open[0] }} , I tried a for loop to get what's inside > but there's nothing I can do. > > Anybody can tell me how this works? > Thanks. > Bastien --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---