Tuesday, July 27, 2010

Form validation

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.

No comments:

Post a Comment