mirror of
https://github.com/django/django.git
synced 2025-09-10 20:46:52 +00:00
[4.0.x] Fixed #33432 -- Fixed typo in docs/howto/outputting-csv.txt.
Backport of 658dc7045a
from main
This commit is contained in:
parent
cf4128e6e9
commit
89d88414dc
1 changed files with 1 additions and 1 deletions
|
@ -112,7 +112,7 @@ Here's an example, which generates the same CSV file as above::
|
||||||
def some_view(request):
|
def some_view(request):
|
||||||
# Create the HttpResponse object with the appropriate CSV header.
|
# Create the HttpResponse object with the appropriate CSV header.
|
||||||
response = HttpResponse(
|
response = HttpResponse(
|
||||||
content_type='text/csv'
|
content_type='text/csv',
|
||||||
headers={'Content-Disposition': 'attachment; filename="somefilename.csv"'},
|
headers={'Content-Disposition': 'attachment; filename="somefilename.csv"'},
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue