diff options
author | Ana Krivokapic <akrivoka@redhat.com> | 2015-04-30 11:49:47 +0200 |
---|---|---|
committer | Ana Krivokapic <akrivoka@redhat.com> | 2015-04-30 11:49:47 +0200 |
commit | 265827c78dda4bc528a96b942e28b83766de6ce0 (patch) | |
tree | 8b068f876360c96cdeba76e1eb39685daeb22abd | |
parent | 55d6fbc55a30ec138d25190562a00f505466a1e2 (diff) | |
download | tuskar-ui-265827c78dda4bc528a96b942e28b83766de6ce0.tar.gz |
Replace 'mimetype' arg of HttpResponse with 'content_type'
'mimetype' has been removed in Django 1.7 and replaced with
'content_type'.
Change-Id: Ib861bac6375bfd4cd6b5403efe7ab927311bcebd
-rw-r--r-- | tuskar_ui/infrastructure/overview/views.py | 4 | ||||
-rw-r--r-- | tuskar_ui/infrastructure/roles/views.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tuskar_ui/infrastructure/overview/views.py b/tuskar_ui/infrastructure/overview/views.py index 6e0c17f5..677e1d53 100644 --- a/tuskar_ui/infrastructure/overview/views.py +++ b/tuskar_ui/infrastructure/overview/views.py @@ -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): diff --git a/tuskar_ui/infrastructure/roles/views.py b/tuskar_ui/infrastructure/roles/views.py index 7ff6068d..7d3760cd 100644 --- a/tuskar_ui/infrastructure/roles/views.py +++ b/tuskar_ui/infrastructure/roles/views.py @@ -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') |