summaryrefslogtreecommitdiffstats
path: root/todolists
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2013-01-14 05:34:33 +0100
committerDan McGee <dan@archlinux.org>2013-01-14 05:34:33 +0100
commit66850026ca934e5a09238e9033c541cdc5085a42 (patch)
treef92873cdc34c2ebf446173513da54b96f9bb156f /todolists
parent019785186ce5861215ece96818513ec21e15df41 (diff)
downloadarchweb-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 'todolists')
-rw-r--r--todolists/views.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/todolists/views.py b/todolists/views.py
index f4f9ab2..fcf62e2 100644
--- a/todolists/views.py
+++ b/todolists/views.py
@@ -53,7 +53,7 @@ def flag(request, slug, pkg_id):
'status': tlpkg.get_status_display(),
'css_class': tlpkg.status_css_class(),
}
- return HttpResponse(json.dumps(data), mimetype='application/json')
+ return HttpResponse(json.dumps(data), content_type='application/json')
return redirect(todolist)
@@ -87,8 +87,7 @@ def list_pkgbases(request, slug, svn_root):
'pkgbase', flat=True).filter(
todolist=todolist, repo__in=repos, removed__isnull=True).order_by(
'pkgbase').distinct()
- return HttpResponse('\n'.join(pkgbases),
- mimetype='text/plain')
+ return HttpResponse('\n'.join(pkgbases), content_type='text/plain')
def todolist_list(request):