mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-10 19:56:59 +03:00
Tweak
This commit is contained in:
parent
cb9fb6ef2f
commit
136c9b5271
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user