From e7ca326555b02e1f415469c83495f99c22ea1a0f Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Tue, 26 Feb 2013 19:51:09 +0000 Subject: Tweaks --- docs/api-guide/format-suffixes.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/api-guide/format-suffixes.md') 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... -- cgit v1.2.3