Hi, I think the Django forms by default sets the 'required=True'. If you want the form to be submitted without any values u need to supply 'required=False'.
wf_first_name = forms.CharField(required=False) Thanks, Arun Shanker Prasad. On Mar 25, 7:51 am, arnie <parvez...@rediffmail.com> wrote: > I am using app engine patch sample and using django template forms. > Corresponding to the user form, I have created the class as given > below > class CreateUserForm(forms.Form): > wf_first_name = forms.CharField() > wf_last_name = forms.CharField() > wf_company = forms.CharField() > wf_title = forms.CharField() > wf_street_address = forms.CharField() > > The template form's field are First Name [id=wf_first_name], Last Name > [wf_last_name] and so on. > My problem is that if I submit the form without editing an field on > the form then inside the function that is handling both the GET and > the POST request, as shown > existingUserForm = CreateUserForm(request.POST) > userDetails = {} > if(request.method =="POST"): > if existingUserForm.is_valid(): > The last line always fails > On the other hand if i submit the form while editing some fields then > the above code works > What's going wrong here? > Thanks > Arnie --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---