Hi. Choices is a tuple/list of tuples/lists, so in your case it would look like this: (('one', 'one'), ('two', 'two')) You can't use dictionaries.
~Jakob On 27 Mar., 14:43, Joshua Partogi <joshua.j...@gmail.com> wrote: > Hi all, > > Let me just get straight to the point > I tried these: > label = forms.ChoiceField(choices=({'one':'one','two':'two'}) ) > > And received these: > Exception Type: TemplateSyntaxError > Exception Value: Caught an exception while rendering: too many values > to unpack > > What was wrong with my code? Does anybody know how should I define the > choices? > > Thank you very much in advance > > -- > If you can't believe in God the chances are your God is too small. > > Read my blog:http://joshuajava.wordpress.com/ > Follow me on twitter:http://twitter.com/jpartogi --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---