Commit 79a12b32 authored by Kostas Papadimitriou's avatar Kostas Papadimitriou
Browse files

django-lib: Use requested default serialization

parent f4b03ce2
......@@ -75,7 +75,7 @@ def api_method(http_method=None, token_required=True, user_required=True,
try:
# Get the requested serialization format
serialization = get_serialization(
request, format_allowed, 'json')
request, format_allowed, serializations[0])
# If guessed serialization is not supported, fallback to
# the default serialization or return an API error in case
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment