aboutsummaryrefslogtreecommitdiffstats
path: root/api-guide/throttling.html
diff options
context:
space:
mode:
Diffstat (limited to 'api-guide/throttling.html')
-rw-r--r--api-guide/throttling.html2
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 = {