diff options
author | Dan McGee <dan@archlinux.org> | 2013-01-14 05:34:33 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2013-01-14 05:34:33 +0100 |
commit | 66850026ca934e5a09238e9033c541cdc5085a42 (patch) | |
tree | f92873cdc34c2ebf446173513da54b96f9bb156f /visualize | |
parent | 019785186ce5861215ece96818513ec21e15df41 (diff) | |
download | archweb-66850026ca934e5a09238e9033c541cdc5085a42.tar.gz archweb-66850026ca934e5a09238e9033c541cdc5085a42.tar.xz |
Use content_type and not mimetype on HttpResponse()
Bug #16519 in Django deprecates mimetype, so update our code
accordingly.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'visualize')
-rw-r--r-- | visualize/views.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/visualize/views.py b/visualize/views.py index 48e8f86..9c537c2 100644 --- a/visualize/views.py +++ b/visualize/views.py @@ -62,13 +62,13 @@ def arch_repo_data(): def by_arch(request): data = arch_repo_data() to_json = json.dumps(data['by_arch'], ensure_ascii=False) - return HttpResponse(to_json, mimetype='application/json') + return HttpResponse(to_json, content_type='application/json') @cache_page(1800) def by_repo(request): data = arch_repo_data() to_json = json.dumps(data['by_repo'], ensure_ascii=False) - return HttpResponse(to_json, mimetype='application/json') + return HttpResponse(to_json, content_type='application/json') # vim: set ts=4 sw=4 et: |