Replace mimetype argument name with content_type

Change-Id: I11403772604bee1c98e2d3dfe81789d35bc01595
Closes-Bug: #1348576
This commit is contained in:
Matthias Runge 2014-07-25 13:01:21 +02:00
parent 1ea96903f0
commit 921d50f9c0
2 changed files with 2 additions and 2 deletions

View File

@ -85,7 +85,7 @@ class DownloadJobBinaryView(generic.View):
_('Unable to fetch job binary: %(exc)s'),
redirect=redirect)
response = http.HttpResponse(mimetype='application/binary')
response = http.HttpResponse(content_type='application/binary')
response['Content-Disposition'] = \
'attachment; filename=%s' % defaultfilters.slugify(jb.name)
response.write(data)

View File

@ -80,7 +80,7 @@ class LaunchJobView(workflows.WorkflowView):
job_id = request.REQUEST.get("job_id")
job_type = saharaclient.job_get(request, job_id).type
return http.HttpResponse(json.dumps({"job_type": job_type}),
mimetype='application/json')
content_type='application/json')
return super(LaunchJobView, self).get(request, args, kwargs)
def get_context_data(self, **kwargs):