summaryrefslogtreecommitdiff
path: root/packages/views/search.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2013-01-13 22:34:33 -0600
committerDan McGee <dan@archlinux.org>2013-01-13 22:34:33 -0600
commit66850026ca934e5a09238e9033c541cdc5085a42 (patch)
treef92873cdc34c2ebf446173513da54b96f9bb156f /packages/views/search.py
parent019785186ce5861215ece96818513ec21e15df41 (diff)
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 'packages/views/search.py')
-rw-r--r--packages/views/search.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/views/search.py b/packages/views/search.py
index f6e670df..0f313ccb 100644
--- a/packages/views/search.py
+++ b/packages/views/search.py
@@ -197,6 +197,6 @@ def search_json(request):
container['valid'] = True
to_json = json.dumps(container, ensure_ascii=False, cls=PackageJSONEncoder)
- return HttpResponse(to_json, mimetype='application/json')
+ return HttpResponse(to_json, content_type='application/json')
# vim: set ts=4 sw=4 et: