Commit 9687f4ff by Kevin Brown

Merge pull request #2457 from jfw/patch-3

minor typo in viewsets docs
parents 0cb5acee 39da9c7c
...@@ -146,7 +146,7 @@ The decorators can additionally take extra arguments that will be set for the ro ...@@ -146,7 +146,7 @@ The decorators can additionally take extra arguments that will be set for the ro
def set_password(self, request, pk=None): def set_password(self, request, pk=None):
... ...
Theses decorators will route `GET` requests by default, but may also accept other HTTP methods, by using the `methods` argument. For example: These decorators will route `GET` requests by default, but may also accept other HTTP methods, by using the `methods` argument. For example:
@detail_route(methods=['post', 'delete']) @detail_route(methods=['post', 'delete'])
def unset_password(self, request, pk=None): def unset_password(self, request, pk=None):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment