Re: KeyError, Submit Empty Field and Form Validation

2007-11-13 Thread Gloria W
This was an excellent response, and helped me immediately. Thank you. ~G~ --~--~-~--~~~---~--~~ 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

Re: KeyError, Submit Empty Field and Form Validation

2007-11-02 Thread Karen Tracey
On 11/2/07, crybaby <[EMAIL PROTECTED]> wrote: > > > I have @login_required decorator for the view function that handles > this form and I am already logged in. > I commented out the "def clean" from the form and when I submit the > form field reason without a value, I get this error: > >

Re: KeyError, Submit Empty Field and Form Validation

2007-11-02 Thread crybaby
I have @login_required decorator for the view function that handles this form and I am already logged in. I commented out the "def clean" from the form and when I submit the form field reason without a value, I get this error: Exception Type: ValueError Exception Value:The view

Re: KeyError, Submit Empty Field and Form Validation

2007-11-02 Thread Karen Tracey
On 11/2/07, crybaby <[EMAIL PROTECTED]> wrote: > > > I have a form and trying to do validation. When I submit a form > without any values into the field, "reason", I get this error. > > Exception Type: KeyError > Exception Value:'reason' > > at this line of ReasonForm: > >

KeyError, Submit Empty Field and Form Validation

2007-11-02 Thread crybaby
I have a form and trying to do validation. When I submit a form without any values into the field, "reason", I get this error. Exception Type: KeyError Exception Value:'reason' at this line of ReasonForm: if(self.cleaned_data['reason']==''): here is my ReasonForm: class