diff options
| author | Rob Terhaar | 2014-08-06 18:55:08 -0400 | 
|---|---|---|
| committer | Rob Terhaar | 2014-08-06 18:55:08 -0400 | 
| commit | 3217842346cebda578e9398b89fe60fed7d1b2d8 (patch) | |
| tree | 67af1d4c22e9bf61eb25c8ee78a381f4c57efc4d | |
| parent | 5ba29620368c02e3ff79b34c8da90604c7555715 (diff) | |
| download | django-rest-framework-3217842346cebda578e9398b89fe60fed7d1b2d8.tar.bz2 | |
minor doc fix, @api_view() needs an iterable
| -rw-r--r-- | docs/api-guide/throttling.md | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/docs/api-guide/throttling.md b/docs/api-guide/throttling.md index b7c320f0..92f4c22b 100644 --- a/docs/api-guide/throttling.md +++ b/docs/api-guide/throttling.md @@ -58,7 +58,7 @@ using the `APIView` class based views.  Or, if you're using the `@api_view` decorator with function based views. -    @api_view('GET') +    @api_view(['GET'])      @throttle_classes([UserRateThrottle])      def example_view(request, format=None):          content = { | 
