Permalink
Browse files

content type for csv download

  • Loading branch information...
1 parent 5fde474 commit 5fc924465f22bc4ea8aef236a3d7cfca9e0f3774 @symroe symroe committed Dec 21, 2010
Showing with 1 addition and 2 deletions.
  1. +1 −2 web/api/views.py
View
@@ -70,9 +70,8 @@ def csv_recipient(request, recipient_id):
recipient_info.append(field_value)
- # response = HttpResponse(mimetype='text/csv')
response = HttpResponse(mimetype='text/csv')
- # response['Content-Disposition'] = 'attachment; filename=recipient-%s.csv' % recipient.pk
+ response['Content-Disposition'] = 'attachment; filename=recipient-%s.csv' % recipient.pk
csv_writer = csv.writer(response)

0 comments on commit 5fc9244

Please sign in to comment.