Permalink
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...
1 parent 5e06181 commit 8b4dc349b6e81cf7dce9d6952f92734022f44874 @adrianholovaty adrianholovaty committed Mar 24, 2006
Showing with 1 addition and 1 deletion.
  1. +1 −1 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.