Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
etch
nuages
Commits
00bd40ed
Commit
00bd40ed
authored
Oct 25, 2014
by
Christophe Siraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
django 1.7: Fix csv export
parent
ad9cc948
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
meetingpoll/views.py
meetingpoll/views.py
+1
-1
No files found.
meetingpoll/views.py
View file @
00bd40ed
...
...
@@ -295,7 +295,7 @@ def exp_csv(request, poll_id):
import
csv
# Create the HttpResponse object with the appropriate CSV header.
response
=
HttpResponse
(
mime
type
=
'text/csv'
)
response
=
HttpResponse
(
content_
type
=
'text/csv'
)
response
[
'Content-Disposition'
]
=
'attachment; filename=nuages.csv'
poll
=
get_object_or_404
(
Poll
.
objects
.
all
(),
id
=
poll_id
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment