On Thu, Sep 24, 2009 at 4:27 PM, JF Simon wrote:
>
> I launched form.as_table() in my terminal and the traceback is :
>
> File "", line 1, in ?
> File "/usr/lib/python2.4/site-packages/django/forms/forms.py", line
> 190, in as_table
>return self._html_output(u'%(label)s%(errors)s%
> (field)
Ah I found something ...
In my forms.MultiWidget subclass, "decompress" method was returning
None and not a couple of values !
I just done that :
def decompress(self, value):
if value is None:
return (None, None)
return value
I don't know if it's the best way, bu
I launched form.as_table() in my terminal and the traceback is :
File "", line 1, in ?
File "/usr/lib/python2.4/site-packages/django/forms/forms.py", line
190, in as_table
return self._html_output(u'%(label)s%(errors)s%
(field)s%(help_text)s', u'%s',
'', u'%s', False)
File "/usr/lib/pyt
On Thu, Sep 24, 2009 at 10:40 AM, JF Simon wrote:
>
> Ouh thanks ... because of the TEMPLATE_DEBUG setting, I though
> exceptions within templates were raised ... my sentence seems weird.
> Ill try that tonight.
> Thanks again.
>
>
No, TEMPLATE_DEBUG just adds some information (snippet of the tem
Ouh thanks ... because of the TEMPLATE_DEBUG setting, I though
exceptions within templates were raised ... my sentence seems weird.
Ill try that tonight.
Thanks again.
JF
On 24 sep, 14:42, Karen Tracey wrote:
> On Thu, Sep 24, 2009 at 2:49 AM, JF Simon wrote:
>
> > Hi there !
>
> > I try to un
On Thu, Sep 24, 2009 at 2:49 AM, JF Simon wrote:
>
> Hi there !
>
> I try to understand why my form doesn't render anything. No exception
> is raised and i'm going crazy !
> In my forms.py I got these (simplified for instance) classes :
>
> [snip code]
>
> In my template I just put "form.as_table
Don't you find my problem really funny ?
--~--~-~--~~~---~--~~
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 em
Hi there !
I try to understand why my form doesn't render anything. No exception
is raised and i'm going crazy !
In my forms.py I got these (simplified for instance) classes :
class SignupPasswordWidget(forms.MultiWidget):
def __init__(self, attrs=None):
widgets = (
form
8 matches
Mail list logo