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
This commit is contained in:
parent
5e06181be7
commit
8b4dc349b6
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue