aboutsummaryrefslogtreecommitdiffstats
path: root/api-guide/viewsets.html
diff options
context:
space:
mode:
Diffstat (limited to 'api-guide/viewsets.html')
-rw-r--r--api-guide/viewsets.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/api-guide/viewsets.html b/api-guide/viewsets.html
index f1d16ba6..73536a1d 100644
--- a/api-guide/viewsets.html
+++ b/api-guide/viewsets.html
@@ -311,7 +311,7 @@ class UserViewSet(viewsets.ModelViewSet):
def set_password(self, request, pk=None):
...
</code></pre>
-<p>The <code>@action</code> decorator will route <code>POST</code> requests by default, but may also accept other HTTP methods, by using the <code>method</code> argument. For example:</p>
+<p>The <code>@action</code> decorator will route <code>POST</code> requests by default, but may also accept other HTTP methods, by using the <code>methods</code> argument. For example:</p>
<pre class="prettyprint lang-py"><code> @action(methods=['POST', 'DELETE'])
def unset_password(self, request, pk=None):
...