aboutsummaryrefslogtreecommitdiffstats
path: root/djangorestframework/renderers.py
diff options
context:
space:
mode:
Diffstat (limited to 'djangorestframework/renderers.py')
-rw-r--r--djangorestframework/renderers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/djangorestframework/renderers.py b/djangorestframework/renderers.py
index 9834ba5e..7aa8777c 100644
--- a/djangorestframework/renderers.py
+++ b/djangorestframework/renderers.py
@@ -181,7 +181,7 @@ class DocumentingTemplateRenderer(BaseRenderer):
# Get the form instance if we have one bound to the input
form_instance = None
- if method == view.method.lower():
+ if method == getattr(view, 'method', view.request.method).lower():
form_instance = getattr(view, 'bound_form_instance', None)
if not form_instance and hasattr(view, 'get_bound_form'):