Bit of a basic one this: FormWizard generates a list object which
doesn't have a save(). What's the simplest code to insert in the
sample doc example (http://docs.djangoproject.com/en/1.0/ref/contrib/
formtools/form-wizard/) to save to a mysql database?

The relevant spot:

from django.http import HttpResponseRedirect
from django.contrib.formtools.wizard import FormWizard

class ContactWizard(FormWizard):
    def done(self, request, form_list):
        do_something_with_the_form_data(form_list)
        return HttpResponseRedirect('/page-to-redirect-to-when-done/')

Just trying to evaluate if I can use this approach in a site-wide
multi step form that's built from Models (I think so, but am unsure
around this step)

Any throughts appreciated!

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

Reply via email to