diff options
| author | Tom Christie | 2014-08-12 14:49:18 +0100 |
|---|---|---|
| committer | Tom Christie | 2014-08-12 14:49:18 +0100 |
| commit | 0ed41c60de9d9f5d56c6a172af810e589a646702 (patch) | |
| tree | cf28e072afd8e44608142459b2df6bf0d3e47a25 /api-guide/throttling.html | |
| parent | 3f6137116f1e712b56d61f11fb06ea9792df193e (diff) | |
| download | django-rest-framework-0ed41c60de9d9f5d56c6a172af810e589a646702.tar.bz2 | |
Latest sponsor updates
Diffstat (limited to 'api-guide/throttling.html')
| -rw-r--r-- | api-guide/throttling.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api-guide/throttling.html b/api-guide/throttling.html index 5739aa21..e0bb189c 100644 --- a/api-guide/throttling.html +++ b/api-guide/throttling.html @@ -249,7 +249,7 @@ class ExampleView(APIView): return Response(content) </code></pre> <p>Or, if you're using the <code>@api_view</code> decorator with function based views.</p> -<pre class="prettyprint lang-py"><code>@api_view('GET') +<pre class="prettyprint lang-py"><code>@api_view(['GET']) @throttle_classes([UserRateThrottle]) def example_view(request, format=None): content = { |
