Three Django forms in different tabs in one template?
I'm working through a nice little feature for my website that will
bring all user editable preferences/profile options together into a
single web page using tabs. I have the tabs working and I can display
a different Django form on each tab but I'm confused how to tie it all
together using a view.
Typically each form would be on a separate page using different views.
But how would I support say three forms on one page (in three tabs)? I
need one view to generate all of the tabs but one view can't support
three forms? What's the best way to implement this?
Should I have three views to handle the POST requests for the three
forms and then a reusable function that renders the template?
Thanks
--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home