diff options
| author | Tom Christie | 2011-05-24 13:29:30 +0100 |
|---|---|---|
| committer | Tom Christie | 2011-05-24 13:29:30 +0100 |
| commit | ce6e5fdc01b6d820f317bc1d8edc4ede4a946516 (patch) | |
| tree | 9d3b9dbd2f263ba1d5f99cd3fdce40ae9f54f511 /djangorestframework/parsers.py | |
| parent | eafda8550800a98aa37571df0cef78e32521a89b (diff) | |
| download | django-rest-framework-ce6e5fdc01b6d820f317bc1d8edc4ede4a946516.tar.bz2 | |
Renderers can now cope with parameterised args. ResponseMixin gets cleaned up & added Renderer.can_handle_response(), mirroring Parsers.can_handle_request()
Diffstat (limited to 'djangorestframework/parsers.py')
| -rw-r--r-- | djangorestframework/parsers.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/djangorestframework/parsers.py b/djangorestframework/parsers.py index 7c76bcc6..726e09e9 100644 --- a/djangorestframework/parsers.py +++ b/djangorestframework/parsers.py @@ -54,7 +54,7 @@ class BaseParser(object): This may be overridden to provide for other behavior, but typically you'll instead want to just set the :attr:`media_type` attribute on the class. """ - return media_type_matches(content_type, self.media_type) + return media_type_matches(self.media_type, content_type) def parse(self, stream): """ |
