Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
synnefo
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
itminedu
synnefo
Commits
79a12b32
Commit
79a12b32
authored
12 years ago
by
Kostas Papadimitriou
Browse files
Options
Downloads
Patches
Plain Diff
django-lib: Use requested default serialization
parent
f4b03ce2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
snf-django-lib/snf_django/lib/api/__init__.py
+1
-1
1 addition, 1 deletion
snf-django-lib/snf_django/lib/api/__init__.py
with
1 addition
and
1 deletion
snf-django-lib/snf_django/lib/api/__init__.py
+
1
−
1
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment