aboutsummaryrefslogtreecommitdiffstats
path: root/djangorestframework
diff options
context:
space:
mode:
authorSébastien Piquemal2012-02-07 16:52:15 +0200
committerSébastien Piquemal2012-02-07 16:52:15 +0200
commit2cdff1b01e3aca6c56cef433e786e3ae75362739 (patch)
treec44ccbd8b16a85aab0ef18e36aa5af8846bd3062 /djangorestframework
parent6963fd3623ee217fe489abb25f0ffa8c0781e4cd (diff)
downloaddjango-rest-framework-2cdff1b01e3aca6c56cef433e786e3ae75362739.tar.bz2
modified examples, somethin' still broken, can't find what
Diffstat (limited to 'djangorestframework')
-rw-r--r--djangorestframework/mixins.py2
-rw-r--r--djangorestframework/views.py1
2 files changed, 2 insertions, 1 deletions
diff --git a/djangorestframework/mixins.py b/djangorestframework/mixins.py
index ef4965a5..57b85595 100644
--- a/djangorestframework/mixins.py
+++ b/djangorestframework/mixins.py
@@ -58,7 +58,7 @@ class RequestMixin(object):
to parse its content.
"""
if not hasattr(self, '_parsers'):
- self._parsers = [r(self) for r in self.parser_classes]
+ self._parsers = [p(self) for p in self.parser_classes]
return self._parsers
def prepare_request(self, request):
diff --git a/djangorestframework/views.py b/djangorestframework/views.py
index 761737c4..5bba6b4e 100644
--- a/djangorestframework/views.py
+++ b/djangorestframework/views.py
@@ -15,6 +15,7 @@ from django.views.decorators.csrf import csrf_exempt
from djangorestframework.compat import View as DjangoView, apply_markdown
from djangorestframework.response import Response, ImmediateResponse
from djangorestframework.mixins import *
+from djangorestframework.utils import allowed_methods
from djangorestframework import resources, renderers, parsers, authentication, permissions, status