form errors

0 views
Skip to first unread message

jz

unread,
Jul 23, 2008, 10:23:25 AM7/23/08
to Django users
I am not receiving errors on my web page for a certain form.
When set it up using the shell I get form.is_valid() to False and the
I try form.errors
This prints out {}
Has anyone had this happen before and what could it mean?

I know that I am setting up errors correctly because I have used them
before. Also I have done a print on the form and it looks correct.

Thanks for any help.
John

Rajesh Dhawan

unread,
Jul 23, 2008, 4:30:24 PM7/23/08
to Django users
Hi John,

> I am not receiving errors on my web page for a certain form.
> When set it up using the shell I get form.is_valid() to False and the
> I try form.errors
> This prints out {}
> Has anyone had this happen before and what could it mean?

It could be that the errors are not on a particular field but on the
overall form (i.e. the form's clean() method is raising them.) So try
this from the shell:

form.non_field_errors()

-Rajesh D
Reply all
Reply to author
Forward
0 new messages