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
136c9b52
Commit
136c9b52
authored
Apr 11, 2011
by
Tom Christie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tweak
parent
cb9fb6ef
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletions
+2
-1
djangorestframework/request.py
+2
-0
djangorestframework/resource.py
+0
-1
No files found.
djangorestframework/request.py
View file @
136c9b52
...
...
@@ -17,6 +17,7 @@ class RequestMixin(object):
CONTENT_PARAM
=
"_content"
parsers
=
()
validators
=
()
def
_get_method
(
self
):
"""
...
...
@@ -169,6 +170,7 @@ class RequestMixin(object):
self
.
_stream
=
StringIO
(
content
[
self
.
CONTENT_PARAM
])
del
(
self
.
_raw_content
)
def
parse
(
self
,
stream
,
content_type
):
"""
Parse the request content.
...
...
djangorestframework/resource.py
View file @
136c9b52
...
...
@@ -3,7 +3,6 @@ from django.views.decorators.csrf import csrf_exempt
from
djangorestframework.compat
import
View
from
djangorestframework.emitters
import
EmitterMixin
from
djangorestframework.authenticators
import
AuthenticatorMixin
from
djangorestframework.validators
import
FormValidatorMixin
from
djangorestframework.response
import
Response
,
ResponseException
from
djangorestframework.request
import
RequestMixin
,
AuthMixin
...
...
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