<s> from django . shortcuts import render_to_response <EOL> from django . template import RequestContext <EOL> from formwizard . views import SessionWizardView <EOL> from testapp2 . forms import FeedbackStep1 , FeedbackStep2 , FeedbackStep3 <EOL> class FeedbackWizard ( SessionWizardView ) : <EOL> template_name = '<STR_LIT>' <EOL> def done ( self , form_list , * args , ** kwargs ) : <EOL> return render_to_response ( <EOL> '<STR_LIT>' , <EOL> { '<STR_LIT>' : [ form . cleaned_data for form in form_list ] } , <EOL> context_instance = RequestContext ( self . request ) <EOL> ) <EOL> def message_condition ( wizard ) : <EOL> data = wizard . get_cleaned_data_for_step ( '<STR_LIT:1>' ) or { } <EOL> return data . get ( '<STR_LIT>' , True ) <EOL> feedback_wizard = FeedbackWizard . as_view ( <EOL> [ FeedbackStep1 , FeedbackStep2 , FeedbackStep3 ] , <EOL> condition_dict = { '<STR_LIT:2>' : message_condition } ) </s>
