diff options
| author | Claude Paroz <claude@2xlibre.net> | 2019-08-17 09:20:36 +0200 |
|---|---|---|
| committer | Carlton Gibson <carlton.gibson@noumenal.es> | 2019-08-17 09:20:36 +0200 |
| commit | 7203efb799969b4662ecb58f4cefd2a5f2e0062b (patch) | |
| tree | e53a71bcfa46541c820db196f07e233e70a8274e /docs/howto | |
| parent | 6805c0f99f4790f28a97d597934d0877ba81dba9 (diff) | |
Fixed #30694 -- Documented FileResponse does not seek its file source.
Diffstat (limited to 'docs/howto')
| -rw-r--r-- | docs/howto/outputting-pdf.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/howto/outputting-pdf.txt b/docs/howto/outputting-pdf.txt index 34172f4087..8549b0e380 100644 --- a/docs/howto/outputting-pdf.txt +++ b/docs/howto/outputting-pdf.txt @@ -67,6 +67,7 @@ Here's a "Hello World" example:: # FileResponse sets the Content-Disposition header so that browsers # present the option to save the file. + buffer.seek(0) return FileResponse(buffer, as_attachment=True, filename='hello.pdf') The code and comments should be self-explanatory, but a few things deserve a |
