aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Christie2013-08-27 01:14:43 -0700
committerTom Christie2013-08-27 01:14:43 -0700
commitf254ec3e6e4e0b0ac3854d2842e7c0b81042beb9 (patch)
treea4884b3f46fde580973fed5763c9b160d7c19c75
parent23400357895dbbf1e91fa720af080eb1b6e23a00 (diff)
parentafee470aca28c73fb0f107e99fdb98e5a2d5a135 (diff)
downloaddjango-rest-framework-f254ec3e6e4e0b0ac3854d2842e7c0b81042beb9.tar.bz2
Merge pull request #1059 from KristianOellegaard/patch-1
More information on how actions are mapped to URLs in viewsets
-rw-r--r--docs/api-guide/viewsets.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/api-guide/viewsets.md b/docs/api-guide/viewsets.md
index 61f9d2f8..2e65b7a4 100644
--- a/docs/api-guide/viewsets.md
+++ b/docs/api-guide/viewsets.md
@@ -142,6 +142,10 @@ The `@action` decorator will route `POST` requests by default, but may also acce
@action(methods=['POST', 'DELETE'])
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