On Tue, Sep 18, 2012 at 11:12 AM, neeraj dhiman <ndhima...@gmail.com> wrote:
> I am using two models in my app and different form for each model, when I
> tried to validate these two forms , one model is validated but other is not.
>

You need to be a bit more selective about what code you show, and more
explicit about where the errors occur (or where the errors should
occur, whichever).

In your CustomerRegistration view, when initially rendering the forms
you construct a Registration_Form and a Check_Attribute_Form, but when
the form is resubmitted back to you, you only call is_valid() on the
Registration_Form instance. Therefore, validation never occurs on the
Check_Attribute_Form instance.

I've not looked at the other three views you posted along with
CustomerRegistration…

By the way, naming views with CamelCaps makes them look like classes
and isn't recommended.

Cheers

Tom

-- 
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