The form wizard allows one to pass validated form data onto another
view/form.

Check it out and see if it's suitable for you:
http://docs.djangoproject.com/en/dev/ref/contrib/formtools/form-wizard/



On Mar 9, 11:29 am, Joakim Hove <joakim.h...@gmail.com> wrote:
> Sorry;
>
> my attempts at interlacing ASCII art in the code did not exactly
> aid readability. Here is the code section again, simplified:
>
> --------------------------------------------------------------------------------------
> def InputForm( forms.Form ):
>      name = forms.CharField( max_length = 100)
>      email = forms.EmailField( )
>
> # This is the view called in 1 above (have omitted some csrf magic).
> def initial_view( request ):
>       if request.method == "GET":
>            form = InputForm()
>       else:
>            form = InputForm( reques.POST )
>            if form.is_valid():
>                 return HttpResponseRedirect( "/last_chance/" , )
>     return render_to_response( "form_template.html" ,
> request )
>
> # In this view I would like to display the input the user entered in
> # the previous form.
> def last_chance_view( request ):
>       return render_to_response()??
>
> --------------------------------------------------------------------------------------
>
> Joakim

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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