Is there a way to access the request
variable in the done () method of the Form Wizard?
class AddWizard(SessionWizardView): def done(self, form_list, **kwargs): if form_list[0].cleaned_data['ad_type'] == '1': ad_type = 'basic' else: ad_type = 'other' return render_to_response('business/done.html', { 'form_data': ad_type, }, context_instance = RequestContext(request) )
I want to access the user object that is in the request, but I'm not sure how to pass the done () method transfer to me?
source share