check your paranthesis when i see that error it is usually about
paranthessis
--~--~-~--~~~---~--~~
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
On Sat, Jul 4, 2009 at 12:39 PM, Carlos Eduardo Sotelo Pinto <
csot...@aqpglug.org.pe> wrote:
>
> Hi people
>
> I have this form , as my subject says, it is giving me "to many values
> to unpack"
>
FYI, providing the traceback, or at least identifying the line of code that
causes the error, would
Alright then, I found the answer to my own question. A patch for
"optgroups" was added to the ChoiceField at revision 7977. As it turns
out my custom widget breaks because it relies on the behavior of
ChoiceField before the patch. In order to fix the problem I'll have to
update my custom widget.
Thanks that helps quite a bit. I see now, it expects each item/element
in 'v' to be two-element tuple.
Does any one know if there was a change made to the format of the
choices argument for forms in django 1.0?
--
matthew
On Oct 7, 10:37 am, Steve Holden <[EMAIL PROTECTED]> wrote:
> mthorley wr
mthorley wrote:
> I just upgraded to django 1.0 and started getting this error. I was
> already using newforms and am quite surprised and dumbfounded by the
> errror. Generally this error would be caused by a missing comma in a
> tuple, but that appears to not be my case.
>
> I added some print
El mié, 09-07-2008 a las 09:35 -0500, Arien escribió:
> > TOPIC_CHOICES = ( ('general', 'General enquiry'),
> > ('bug', 'Bug report'),
> > ('suggestion' 'Suggestion'),
> > )
>
> You're missing a comma in the last-but-one line. (It evaluates to
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')
Looks like you are following the djangobook, so check if your view is like:
Contact us
Contact us
{{ form.as_table }}
Cheers.
--
Rui
--~--~-~--~~~---~--~~
You received this message because you are s
8 matches
Mail list logo