Tuesday, July 27, 2010

Re: Form validation

Send your model and form codes, than it will be easier to see what is wrong.


On Tue, Jul 27, 2010 at 4:45 AM, S.Selvam <s.selvamsiva@gmail.com> wrote:
> Hi all,
> I have two model fields (text and file ) and i want either one of the field
> to be filled out.
>
> I set null=True,blank=True for both fields in model.
>
> Still the form validation requires both fields.
>
> In form i tried to have required=False attribute, which makes it impossible
> to upload file(via HTTP Post from a applet )
>
>
> --
> Regards,
> S.Selvam
>
>    " I am because we are "
>
> --
> 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+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment