Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed typo in docs/outputting_pdf.txt. Thanks, Paul

git-svn-id: http://code.djangoproject.com/svn/django/trunk@2553 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 8b4dc349b6e81cf7dce9d6952f92734022f44874 1 parent 5e06181
@adrianholovaty adrianholovaty authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  docs/outputting_pdf.txt
View
2  docs/outputting_pdf.txt
@@ -117,7 +117,7 @@ efficient. Here's the above "Hello World" example rewritten to use
response = HttpResponse(mimetype='application/pdf')
response['Content-Disposition'] = 'attachment; filename=somefilename.pdf'
- buffer = String()
+ buffer = StringIO()
# Create the PDF object, using the StringIO object as its "file."
p = canvas.Canvas(buffer)

0 comments on commit 8b4dc34

Please sign in to comment.
Something went wrong with that request. Please try again.