On Mon, Aug 10, 2009 at 6:09 AM, nostradamnit <sam.cranf...@gmail.com>wrote:

>
> I have a form that inherits from ModelForm, and in my view,
> form.is_valid returns true, then save() bombs out with validation
> errors?!?
>

is_valid is a method.  If you are checking it "if form.is_valid:" that is
always going to return True because it always exists.  You need to actually
call the method: "if form.is_valid():"

Karen

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

Reply via email to