I'm using django-formtools and I have the following scenario:
class CreateCampaign(NamedUrlSessionWizardView):
condition_dict={'rewards':show_reward_form,
'user_conditionals':show_conditionals_form,
'organizer_info': show_organizer_info_form(self.request.user)}
def get_template_names(self):
return [TEMPLATES[self.steps.current]]
....
As you can see I need to pass the currently logged in user to the show_organizer_form()
function via the request object. How can I access the request object in this case?