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
itminedu
synnefo
Commits
79a12b32
Commit
79a12b32
authored
Jun 19, 2013
by
Kostas Papadimitriou
Browse files
django-lib: Use requested default serialization
parent
f4b03ce2
Changes
1
Hide whitespace changes
Inline
Side-by-side
snf-django-lib/snf_django/lib/api/__init__.py
View file @
79a12b32
...
@@ -75,7 +75,7 @@ def api_method(http_method=None, token_required=True, user_required=True,
...
@@ -75,7 +75,7 @@ def api_method(http_method=None, token_required=True, user_required=True,
try
:
try
:
# Get the requested serialization format
# Get the requested serialization format
serialization
=
get_serialization
(
serialization
=
get_serialization
(
request
,
format_allowed
,
'json'
)
request
,
format_allowed
,
serializations
[
0
]
)
# If guessed serialization is not supported, fallback to
# If guessed serialization is not supported, fallback to
# the default serialization or return an API error in case
# the default serialization or return an API error in case
...
...
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