On Wed, Jul 9, 2008 at 9:27 AM, Fernando Rodríguez <[EMAIL PROTECTED]> wrote: > > Hi, > > I'm getting this error while calling .as_table() on a form. This is how > I define the form and the view function: > > from django import newforms as forms > > TOPIC_CHOICES = ( ('general', 'General enquiry'), > ('bug', 'Bug report'), > ('suggestion' 'Suggestion'), > )
You're missing a comma in the last-but-one line. (It evaluates to the concatenation of the two strings, so you get a sequence with lots more than two elements.) Arien --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---