From d9b0ca1ed8425f567121db73de6863d9532013c7 Mon Sep 17 00:00:00 2001 From: zhurong Date: Tue, 1 Aug 2017 11:28:02 +0800 Subject: [PATCH] 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 --- muranodashboard/packages/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/muranodashboard/packages/views.py b/muranodashboard/packages/views.py index 4fc07ef0c..74b059625 100644 --- a/muranodashboard/packages/views.py +++ b/muranodashboard/packages/views.py @@ -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 = {}