Fix package import fails due to QueryDict immutable

get_form_step_data QueryDict became immutable. cause the error:
AttributeError: This QueryDict instance is immutable
Make a copy for the QueryDict.

Change-Id: I6bd2908e83d00fec7b3d292d94aef4718fbe22d0
Closes-Bug: #1707527
This commit is contained in:
zhurong 2017-08-01 11:28:02 +08:00
parent 8ca959e92e
commit d9b0ca1ed8
1 changed files with 1 additions and 1 deletions

View File

@ -436,7 +436,7 @@ class ImportPackageWizard(horizon_views.PageTitleMixin, views.ModalFormMixin,
LOG.info('Adding {0} application to the'
' latest apps list'.format(app_id))
step_data = self.get_form_step_data(form)
step_data = self.get_form_step_data(form).copy()
if self.steps.current == 'upload':
import_type = form.cleaned_data['import_type']
data = {}