﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
18026	can't update extra_data in process_step of form wizard	creecode	steph	"The [https://docs.djangoproject.com/en/dev/ref/contrib/formtools/form-wizard/#django.contrib.formtools.wizard.views.WizardView.process_step WizardView.process_step] documentation indicates that it is possible to set storage extra data but this appears not to be the case.

It seems the problem lies with the getter for extra_data when it finds an empty dict for extra_data it returns an anonymous dict instead of self.data[self.extra_data_key].

This is a one line change at https://code.djangoproject.com/browser/django/trunk/django/contrib/formtools/wizard/storage/base.py#L40 or there abouts.

def _get_extra_data(self):
    return self.data[self.extra_data_key] or {}

...changes to...

def _get_extra_data(self):
    return self.data[self.extra_data_key]

Credit to [https://github.com/stephrdev/django-formwizard/pull/33 Ryan Show] who identified the problem.  I just wanted to get it into the tracker here as I've run into the problem myself.

Toodle-looooooooo........

creecode"	Bug	closed	contrib.formtools	1.4	Normal	fixed	form wizard extra_data process_step can't update	aron@… steph	Accepted	0	0	0	0	0	0
