Merge "GUI hangs on creation of project in User creation form" into stable/stein

This commit is contained in:
Zuul 2020-01-06 15:22:08 +00:00 committed by Gerrit Code Review
commit 29b3f06ad4
1 changed files with 1 additions and 1 deletions

View File

@ -208,7 +208,7 @@ class WorkflowView(hz_views.ModalBackdropMixin, generic.TemplateView):
messages.error(request, msg) messages.error(request, msg)
if "HTTP_X_HORIZON_ADD_TO_FIELD" in self.request.META: if "HTTP_X_HORIZON_ADD_TO_FIELD" in self.request.META:
field_id = self.request.META["HTTP_X_HORIZON_ADD_TO_FIELD"] field_id = self.request.META["HTTP_X_HORIZON_ADD_TO_FIELD"]
response = http.HttpResponse() response = http.HttpResponse(content_type="text/plain")
if workflow.object: if workflow.object:
data = [self.get_object_id(workflow.object), data = [self.get_object_id(workflow.object),
self.get_object_display(workflow.object)] self.get_object_display(workflow.object)]