diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2006-03-24 02:28:47 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2006-03-24 02:28:47 +0000 |
| commit | 8b4dc349b6e81cf7dce9d6952f92734022f44874 (patch) | |
| tree | 5fe0dbd2fe0d51c39f34ae74135c537e86ab45c2 /docs | |
| parent | 5e06181be72001a241b518cbe7c6f5ce6abecb5f (diff) | |
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
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/outputting_pdf.txt | 2 |
1 files changed, 1 insertions, 1 deletions
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) |
