Replace 'mimetype' arg of HttpResponse with 'content_type'

'mimetype' has been removed in Django 1.7 and replaced with
'content_type'.

Change-Id: Ib861bac6375bfd4cd6b5403efe7ab927311bcebd
This commit is contained in:
Ana Krivokapic 2015-04-30 11:49:47 +02:00
parent 55d6fbc55a
commit 265827c78d
2 changed files with 3 additions and 3 deletions

View File

@ -142,7 +142,7 @@ class IndexView(horizon.forms.ModalFormView, views.StackMixin):
data = self.get_data(request, {})
return http.HttpResponse(
json.dumps(self.get_progress_update(request, data)),
mimetype='application/json',
content_type='application/json',
)
return super(IndexView, self).get(request, *args, **kwargs)
@ -260,7 +260,7 @@ class IndexView(horizon.forms.ModalFormView, views.StackMixin):
'indent': m.get('indent', 0),
'classes': m['classes'],
} for m in messages],
}), mimetype='application/json')
}), content_type='application/json')
class DeployConfirmationView(horizon.forms.ModalFormView, views.StackMixin):

View File

@ -184,4 +184,4 @@ class PerformanceView(base.TemplateView, views.RoleMixin, views.StackMixin):
barchart=barchart, group_by='image_id')
return http.HttpResponse(json.dumps(json_output),
mimetype='application/json')
content_type='application/json')