diff options
| author | Tom Christie | 2014-06-12 12:22:09 +0100 |
|---|---|---|
| committer | Tom Christie | 2014-06-12 12:22:09 +0100 |
| commit | 106c8db6f5cacf1e37978d5cf13c9fde3ca29ce9 (patch) | |
| tree | 6cc268279408148a61c95a63cad523dc0e6589a4 /api-guide/viewsets.html | |
| parent | 03ddd237c93ea5b9159260c49fd856595dbea53c (diff) | |
| download | django-rest-framework-106c8db6f5cacf1e37978d5cf13c9fde3ca29ce9.tar.bz2 | |
Latest docs build
Diffstat (limited to 'api-guide/viewsets.html')
| -rw-r--r-- | api-guide/viewsets.html | 2 |
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): ... |
