aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorRahul2014-12-19 21:20:19 +0530
committerRahul2014-12-19 21:20:19 +0530
commitb4a3e7f64096ea7106ff0d622bdf1c6e2e4e2895 (patch)
tree51ead9442a5997d443275e07c8ecaf3ce31ffc58 /docs
parent6aa0e307c99d0c17d7c48f2416472c7dbdcbbf8f (diff)
downloaddjango-rest-framework-b4a3e7f64096ea7106ff0d622bdf1c6e2e4e2895.tar.bz2
Updates url_path info per suggestion
Diffstat (limited to 'docs')
-rw-r--r--docs/api-guide/routers.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/api-guide/routers.md b/docs/api-guide/routers.md
index 63b8b59a..87b6f15a 100644
--- a/docs/api-guide/routers.md
+++ b/docs/api-guide/routers.md
@@ -68,7 +68,7 @@ The following URL pattern would additionally be generated:
* URL pattern: `^users/{pk}/set_password/$` Name: `'user-set-password'`
-If you did not like the default URL generated for your custom action, you could use `url_path` parameter with `@detail_route` or `@list_route` to customize it.
+If you do not want to use the default URL generated for your custom action, you can instead use the url_path parameter to customize it.
For example, if you want to change the URL for our custom action to `^users/{pk}/change-password/$`, you could write:
@@ -82,7 +82,7 @@ For example, if you want to change the URL for our custom action to `^users/{pk}
def set_password(self, request, pk=None):
...
-Above example would instead generate following URL pattern:
+The above example would now generate the following URL pattern:
* URL pattern: `^users/{pk}/change-password/$` Name: `'user-change-password'`