Merge pull request #1612 from rhcarvalho/patch-3

Fix typo in docs
This commit is contained in:
Xavier Ordoquy 2014-06-02 11:13:34 +02:00
commit 0c91d8ed31

View File

@ -137,7 +137,7 @@ The `@action` and `@link` decorators can additionally take extra arguments that
def set_password(self, request, pk=None):
...
The `@action` decorator will route `POST` requests by default, but may also accept other HTTP methods, by using the `method` argument. For example:
The `@action` decorator will route `POST` requests by default, but may also accept other HTTP methods, by using the `methods` argument. For example:
@action(methods=['POST', 'DELETE'])
def unset_password(self, request, pk=None):