diff options
author | Stephen Finucane <stephenfinucane@hotmail.com> | 2015-04-07 22:20:49 +0100 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2015-05-03 13:46:52 +0800 |
commit | 04e6689193c778fcfbff192e8d34af1dadf6560e (patch) | |
tree | 43a6174d98f8d2760d3fcf9ddd12c797570e64e0 /apps/settings.py | |
parent | a48f76a2d3a98c21d4b37f19cf84073e77db55c8 (diff) | |
download | patchwork-04e6689193c778fcfbff192e8d34af1dadf6560e.tar.bz2 patchwork-04e6689193c778fcfbff192e8d34af1dadf6560e.tar.xz |
views: Replace 'mimetype' with 'content_type'
Passing 'mimetype' to 'HttpResponse' is deprecated in 1.6 and
removed in Django 1.7. Among other things, this causes some unit
tests to fail when using Django 1.7. Its replacement - 'content_type'
- is available in Django 1.5+. This can be seen here:
https://docs.djangoproject.com/en/1.5/ref/request-response/#django.http.HttpResponse.__init__
This is therefore a like-for-like replacement.
Signed-off-by: Stephen Finucane <stephenfinucane@hotmail.com>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'apps/settings.py')
0 files changed, 0 insertions, 0 deletions