Merge pull request #1736 from robbyt/patch-2

minor doc fix, @api_view() needs an iterable
This commit is contained in:
Tom Christie 2014-08-07 00:10:51 +01:00
commit 4086e0562c

View File

@ -58,7 +58,7 @@ using the `APIView` class based views.
Or, if you're using the `@api_view` decorator with function based views. Or, if you're using the `@api_view` decorator with function based views.
@api_view('GET') @api_view(['GET'])
@throttle_classes([UserRateThrottle]) @throttle_classes([UserRateThrottle])
def example_view(request, format=None): def example_view(request, format=None):
content = { content = {