Commit f254ec3e by Tom Christie

Merge pull request #1059 from KristianOellegaard/patch-1

More information on how actions are mapped to URLs in viewsets
parents 23400357 afee470a
...@@ -142,6 +142,10 @@ The `@action` decorator will route `POST` requests by default, but may also acce ...@@ -142,6 +142,10 @@ The `@action` decorator will route `POST` requests by default, but may also acce
@action(methods=['POST', 'DELETE']) @action(methods=['POST', 'DELETE'])
def unset_password(self, request, pk=None): def unset_password(self, request, pk=None):
... ...
The two new actions will then be available at the urls `^users/{pk}/set_password/$` and `^users/{pk}/unset_password/$`
--- ---
# API Reference # API Reference
......
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