Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Christopher M Reffett
whats-open
Commits
58eb2f88
Commit
58eb2f88
authored
Sep 11, 2013
by
Renfred Harper
Browse files
Add pretty printing for API
parent
541c0acc
Changes
1
Hide whitespace changes
Inline
Side-by-side
website/views.py
View file @
58eb2f88
...
...
@@ -28,6 +28,6 @@ def gen_last_modified(request):
def
ajax_schedule_data
(
request
):
# Wrapping up in an object to avoid possible CSRF attack on top-level
# arrays in JSON objects
return
HttpResponse
(
json
.
dumps
({
'data'
:
export_data
()}),
return
HttpResponse
(
json
.
dumps
({
'data'
:
export_data
()}
,
indent
=
4
),
content_type
=
"application/json"
)
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