diff options
| author | Sébastien Piquemal | 2012-02-07 16:52:15 +0200 |
|---|---|---|
| committer | Sébastien Piquemal | 2012-02-07 16:52:15 +0200 |
| commit | 2cdff1b01e3aca6c56cef433e786e3ae75362739 (patch) | |
| tree | c44ccbd8b16a85aab0ef18e36aa5af8846bd3062 /djangorestframework | |
| parent | 6963fd3623ee217fe489abb25f0ffa8c0781e4cd (diff) | |
| download | django-rest-framework-2cdff1b01e3aca6c56cef433e786e3ae75362739.tar.bz2 | |
modified examples, somethin' still broken, can't find what
Diffstat (limited to 'djangorestframework')
| -rw-r--r-- | djangorestframework/mixins.py | 2 | ||||
| -rw-r--r-- | djangorestframework/views.py | 1 |
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 |
