aboutsummaryrefslogtreecommitdiffstats
path: root/docs/api-guide/parsers.md
diff options
context:
space:
mode:
authorStephan Groß2012-10-29 09:07:42 +0100
committerStephan Groß2012-10-29 09:07:42 +0100
commit8d2774dc972ff5144d8ac0450c7f91ade2556ae0 (patch)
tree997ac1321d91f3b7a4a53947b53ac4332eb12526 /docs/api-guide/parsers.md
parentc6240f4514ad34c53122eed77a349b71f28d8847 (diff)
downloaddjango-rest-framework-8d2774dc972ff5144d8ac0450c7f91ade2556ae0.tar.bz2
fixed api_view decorator useage
Diffstat (limited to 'docs/api-guide/parsers.md')
-rw-r--r--docs/api-guide/parsers.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/api-guide/parsers.md b/docs/api-guide/parsers.md
index ac904720..59f00f99 100644
--- a/docs/api-guide/parsers.md
+++ b/docs/api-guide/parsers.md
@@ -37,7 +37,7 @@ You can also set the renderers used for an individual view, using the `APIView`
Or, if you're using the `@api_view` decorator with function based views.
- @api_view(('POST',)),
+ @api_view(['POST'])
@parser_classes((YAMLParser,))
def example_view(request, format=None):
"""