summaryrefslogtreecommitdiffstats
path: root/apps/patchwork/views/patch.py
diff options
context:
space:
mode:
Diffstat (limited to 'apps/patchwork/views/patch.py')
-rw-r--r--apps/patchwork/views/patch.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/patchwork/views/patch.py b/apps/patchwork/views/patch.py
index 1583009..5eedcb5 100644
--- a/apps/patchwork/views/patch.py
+++ b/apps/patchwork/views/patch.py
@@ -23,7 +23,7 @@ from patchwork.forms import PatchForm, CreateBundleForm
from patchwork.requestcontext import PatchworkRequestContext
from django.shortcuts import render_to_response, get_object_or_404
from django.http import HttpResponse, HttpResponseForbidden
-from patchwork.views import generic_list
+from patchwork.views import generic_list, patch_to_mbox
def patch(request, patch_id):
context = PatchworkRequestContext(request)
@@ -94,7 +94,7 @@ def content(request, patch_id):
def mbox(request, patch_id):
patch = get_object_or_404(Patch, id=patch_id)
response = HttpResponse(mimetype="text/plain")
- response.write(patch.mbox().as_string(True))
+ response.write(patch_to_mbox(patch).as_string(True))
response['Content-Disposition'] = 'attachment; filename=' + \
patch.filename().replace(';', '').replace('\n', '')
return response