Something puzzling about the way this is handled. As per the documentationget_form_step_data is specified as the place to manipulate the form data. However the default implementation:
Returns a forms data attribute and not cleaned_data. data is a QueryDict immutable by default and so to modify the data you have to copy the QueryDict (or set the data._mutable flag to True temporarily, which seems like a bit of a hack). I think the documentation should be updated to take this into account if this is not a bug.
Something puzzling about the way this is handled. As per the documentation
get_form_step_data
is specified as the place to manipulate the form data. However the default implementation:Returns a forms
data
attribute and notcleaned_data
.data
is a QueryDict immutable by default and so to modify the data you have to copy the QueryDict (or set thedata._mutable
flag toTrue
temporarily, which seems like a bit of a hack). I think the documentation should be updated to take this into account if this is not a bug.