aboutsummaryrefslogtreecommitdiffstats
path: root/djangorestframework/renderers.py
diff options
context:
space:
mode:
Diffstat (limited to 'djangorestframework/renderers.py')
-rw-r--r--djangorestframework/renderers.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/djangorestframework/renderers.py b/djangorestframework/renderers.py
index 371b5ef0..112736d2 100644
--- a/djangorestframework/renderers.py
+++ b/djangorestframework/renderers.py
@@ -251,8 +251,8 @@ class DocumentingTemplateRenderer(BaseRenderer):
'form': form_instance,
'login_url': login_url,
'logout_url': logout_url,
- 'ACCEPT_PARAM': self.view._ACCEPT_QUERY_PARAM,
- 'METHOD_PARAM': self.view._METHOD_PARAM,
+ 'ACCEPT_PARAM': getattr(self.view, '_ACCEPT_QUERY_PARAM', None),
+ 'METHOD_PARAM': getattr(self.view, '_METHOD_PARAM', None),
'ADMIN_MEDIA_PREFIX': settings.ADMIN_MEDIA_PREFIX
})