Skip to content

Commit 8f0fef4

Browse files
committed
Updated documentation on url_path per suggestions.
1 parent b4a3e7f commit 8f0fef4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/tutorial/6-viewsets-and-routers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Notice that we've also used the `@detail_route` decorator to create a custom act
5353

5454
Custom actions which use the `@detail_route` decorator will respond to `GET` requests. We can use the `methods` argument if we wanted an action that responded to `POST` requests.
5555

56-
The URLs for custom actions by default depends on the method name itself. If you want to change the way url should be constructed, you can use `url_path` parameter of `@detail_route` and provide the string value for the same.
56+
The URLs for custom actions by default depend on the method name itself. If you want to change the way url should be constructed, you can include url_path as a decorator keyword argument.
5757

5858
## Binding ViewSets to URLs explicitly
5959

0 commit comments

Comments
 (0)