Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-rest-framework
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
django-rest-framework
Commits
4e42ef0b
Commit
4e42ef0b
authored
Nov 19, 2012
by
Tom Christie
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #429 from minddust/minor_fixes
updated to buildin status codes
parents
d1472740
728e5051
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
rest_framework/renderers.py
+3
-3
No files found.
rest_framework/renderers.py
View file @
4e42ef0b
...
...
@@ -19,7 +19,7 @@ from rest_framework.request import clone_request
from
rest_framework.utils
import
dict2xml
from
rest_framework.utils
import
encoders
from
rest_framework.utils.breadcrumbs
import
get_breadcrumbs
from
rest_framework
import
VERSION
from
rest_framework
import
VERSION
,
status
from
rest_framework
import
serializers
,
parsers
...
...
@@ -481,7 +481,7 @@ class BrowsableAPIRenderer(BaseRenderer):
# Munge DELETE Response code to allow us to return content
# (Do this *after* we've rendered the template so that we include
# the normal deletion response code in the output)
if
response
.
status_code
==
204
:
response
.
status_code
=
200
if
response
.
status_code
==
status
.
HTTP_204_NO_CONTENT
:
response
.
status_code
=
status
.
HTTP_200_OK
return
ret
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