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
55ee588f
Commit
55ee588f
authored
Mar 25, 2015
by
José Padilla
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use default reason phrases from HTTP standard.
Closes #2763
parent
ac77a56e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
rest_framework/response.py
+2
-2
No files found.
rest_framework/response.py
View file @
55ee588f
...
...
@@ -5,7 +5,7 @@ it is initialized with unrendered data, instead of a pre-rendered string.
The appropriate renderer is called during Django's template response rendering.
"""
from
__future__
import
unicode_literals
from
django.
core.handlers.wsgi
import
STATUS_CODE_TEXT
from
django.
utils.six.moves.http_client
import
responses
from
django.template.response
import
SimpleTemplateResponse
from
django.utils
import
six
...
...
@@ -77,7 +77,7 @@ class Response(SimpleTemplateResponse):
"""
# TODO: Deprecate and use a template tag instead
# TODO: Status code text for RFC 6585 status codes
return
STATUS_CODE_TEXT
.
get
(
self
.
status_code
,
''
)
return
responses
.
get
(
self
.
status_code
,
''
)
def
__getstate__
(
self
):
"""
...
...
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