summaryrefslogtreecommitdiff
path: root/todolists
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 /todolists
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 '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 f4f9ab21..fcf62e23 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):