summaryrefslogtreecommitdiffstats
path: root/todolists
diff options
context:
space:
mode:
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):