On Sep 8, 1:31 am, olivier <[EMAIL PROTECTED]> wrote:
> Hi,
>
> > widget=forms.Select(attrs={'class': 'vSelectField'}))
>
> This let me think you use a javascript validator. Are you sure the
> message comes from the server ?
> You should try  form.is_valid() or whatever.

no javascript. form.is_valid() is not the issue, because I didn´t send
anything.

>
> > just printed "form.is_bound" in my view: the result is "True",
> > although I didn´t invoke the Form with any data.
>
> Yes, you bound it with 'data', even if it is None.
> You may want to do stuff like :
> if data is None:
>     forms.Form.__init(self, auto_id = auto_id)
> else:
>     forms.Form.__init(self, data, auto_id)
>
> But I'm not sure anyway that forms.Form.__init__(self, ...) is the
> right way to do it.

got the script from on of the django-devs.

thanks,
patrick

>
> Regards,
>
>      Olivier


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to