aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/mixins.py
diff options
context:
space:
mode:
authorTom Christie2012-09-20 14:00:53 +0100
committerTom Christie2012-09-20 14:00:53 +0100
commitf4670c89969503919cd597529f19174e67acd388 (patch)
treee65c4debb5f7b2272e3516dec3436e4070af188f /rest_framework/mixins.py
parent5a82aa97266e3b8da1a009a6c37061aaf9109796 (diff)
downloaddjango-rest-framework-f4670c89969503919cd597529f19174e67acd388.tar.bz2
Hack out bunch of unneccesary private methods on View class
Diffstat (limited to 'rest_framework/mixins.py')
-rw-r--r--rest_framework/mixins.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/rest_framework/mixins.py b/rest_framework/mixins.py
index 3dd4a047..33a363d3 100644
--- a/rest_framework/mixins.py
+++ b/rest_framework/mixins.py
@@ -84,8 +84,8 @@ class MetadataMixin(object):
content = {
'name': self.get_name(),
'description': self.get_description(),
- 'renders': self._rendered_media_types,
- 'parses': self._parsed_media_types,
+ 'renders': [renderer.media_type for renderer in self.renderer_classes],
+ 'parses': [parser.media_type for parser in self.parser_classes],
}
# TODO: Add 'fields', from serializer info.
# form = self.get_bound_form()