From 8b4dc349b6e81cf7dce9d6952f92734022f44874 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Fri, 24 Mar 2006 02:28:47 +0000 Subject: [PATCH] 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 --- docs/outputting_pdf.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/outputting_pdf.txt b/docs/outputting_pdf.txt index 003f4d6304..9f3d6b26eb 100644 --- a/docs/outputting_pdf.txt +++ b/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)