Hi,

I have a view that has a form and multiple formsets:

The formsets and their templates are not dependent on each other and can be 
used separately in other views.

However, at least 1 form must be filled up. The form can be from any 
formsets.

How can I validate this? 

Should I be doing it in the view by checking the request.POST and 
calculating the total forms submitted based on the management form: 
TOTAL_FORMS?  But how do I return an error and show the error message in 
the template or can I use ValidationError?

Thanks!


-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to