copy/paste typo, sorry.  It should have read/been:

def formView(request, which_form=None):
    if request.method == 'POST':
        if not [1, 2].__contains__(which_form):
            pass #  <--- iNone or nvalid form specified
        else:
             if which_form==1:
                  form = form1(request.POST)
                  redirect_url='/thanksForm1/'    #was typo
             if which_form==2:
                  form = form2(request.POST)
                  redirect_url='/thanksForm2/'

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