diff options
| author | Tom Christie | 2013-02-26 19:51:09 +0000 | 
|---|---|---|
| committer | Tom Christie | 2013-02-26 19:51:09 +0000 | 
| commit | e7ca326555b02e1f415469c83495f99c22ea1a0f (patch) | |
| tree | 6ea750d82f70cad61fd775b05847b082a6d5db2e | |
| parent | 19135061b629f33760af62f555944169a5eaba47 (diff) | |
| download | django-rest-framework-e7ca326555b02e1f415469c83495f99c22ea1a0f.tar.bz2 | |
Tweaks
| -rw-r--r-- | docs/api-guide/format-suffixes.md | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/docs/api-guide/format-suffixes.md b/docs/api-guide/format-suffixes.md index 02fa1810..53e5f2bf 100644 --- a/docs/api-guide/format-suffixes.md +++ b/docs/api-guide/format-suffixes.md @@ -35,9 +35,9 @@ Example:      urlpatterns = format_suffix_patterns(urlpatterns, allowed=['json', 'html']) -When using `format_suffix_patterns`, you must make sure to add the `'format'` keyword argument to the corresponding view.  For example: +When using `format_suffix_patterns`, you must make sure to add the `'format'` keyword argument to the corresponding views.  For example: -    @api_view(('GET',)) +    @api_view(('GET', 'POST'))      def api_root(request, format=None):          # do stuff... | 
