aboutsummaryrefslogtreecommitdiffstats
path: root/api-guide/throttling.html
diff options
context:
space:
mode:
authorTom Christie2014-08-12 14:49:18 +0100
committerTom Christie2014-08-12 14:49:18 +0100
commit0ed41c60de9d9f5d56c6a172af810e589a646702 (patch)
treecf28e072afd8e44608142459b2df6bf0d3e47a25 /api-guide/throttling.html
parent3f6137116f1e712b56d61f11fb06ea9792df193e (diff)
downloaddjango-rest-framework-0ed41c60de9d9f5d56c6a172af810e589a646702.tar.bz2
Latest sponsor updates
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 = {