Commit 00bd40ed authored by chris's avatar chris

django 1.7: Fix csv export

parent ad9cc948
......@@ -295,7 +295,7 @@ def exp_csv(request, poll_id):
import csv
# Create the HttpResponse object with the appropriate CSV header.
response = HttpResponse(mimetype='text/csv')
response = HttpResponse(content_type='text/csv')
response['Content-Disposition'] = 'attachment; filename=nuages.csv'
poll = get_object_or_404(Poll.objects.all(), id=poll_id)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment