aboutsummaryrefslogtreecommitdiffstats
path: root/djangorestframework/renderers.py
diff options
context:
space:
mode:
authorSébastien Piquemal2012-02-14 10:05:28 +0200
committerSébastien Piquemal2012-02-14 10:05:28 +0200
commit821844bb11e5262fb0dfc2fecf2add8fe18d3210 (patch)
tree02c16208ac3f6432746bd79693123dd399282d83 /djangorestframework/renderers.py
parentb33579a7a18c2cbc6e3789d4a7dc78c82fb0fe80 (diff)
downloaddjango-rest-framework-821844bb11e5262fb0dfc2fecf2add8fe18d3210.tar.bz2
fixed examples, corrected small bugs in the process
Diffstat (limited to 'djangorestframework/renderers.py')
-rw-r--r--djangorestframework/renderers.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/djangorestframework/renderers.py b/djangorestframework/renderers.py
index 08022c7c..2cc9cc88 100644
--- a/djangorestframework/renderers.py
+++ b/djangorestframework/renderers.py
@@ -13,7 +13,7 @@ from django.utils import simplejson as json
from djangorestframework.compat import yaml
-from djangorestframework.utils import dict2xml, url_resolves
+from djangorestframework.utils import dict2xml, url_resolves, allowed_methods
from djangorestframework.utils.breadcrumbs import get_breadcrumbs
from djangorestframework.utils.mediatypes import get_media_type_params, add_media_type_param, media_type_matches
from djangorestframework import VERSION
@@ -349,6 +349,7 @@ class DocumentingTemplateRenderer(BaseRenderer):
'name': name,
'version': VERSION,
'breadcrumblist': breadcrumb_list,
+ 'allowed_methods': allowed_methods(self.view),
'available_formats': self.view._rendered_formats,
'put_form': put_form_instance,
'post_form': post_form_instance,