Skip to content

Commit b4a3e7f

Browse files
committed
Updates url_path info per suggestion
1 parent 6aa0e30 commit b4a3e7f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/api-guide/routers.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ The following URL pattern would additionally be generated:
6868

6969
* URL pattern: `^users/{pk}/set_password/$` Name: `'user-set-password'`
7070

71-
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.
71+
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.
7272

7373
For example, if you want to change the URL for our custom action to `^users/{pk}/change-password/$`, you could write:
7474

@@ -82,7 +82,7 @@ For example, if you want to change the URL for our custom action to `^users/{pk}
8282
def set_password(self, request, pk=None):
8383
...
8484

85-
Above example would instead generate following URL pattern:
85+
The above example would now generate the following URL pattern:
8686

8787
* URL pattern: `^users/{pk}/change-password/$` Name: `'user-change-password'`
8888

0 commit comments

Comments
 (0)