aboutsummaryrefslogtreecommitdiffstats
path: root/docs/tutorial/6-viewsets-and-routers.md
diff options
context:
space:
mode:
authorTom Christie2014-12-19 16:09:01 +0000
committerTom Christie2014-12-19 16:09:01 +0000
commitd109ae0a2e78551977d93e2507267e43a685fafd (patch)
tree156c3d6d999e43c145fcf2da35ec1413c61ae083 /docs/tutorial/6-viewsets-and-routers.md
parent80bacc5fb00682b589b3280c7082af73e3aaa8f8 (diff)
parent8f0fef4b75f5c999c13b5d37a263da3a3388142e (diff)
downloaddjango-rest-framework-d109ae0a2e78551977d93e2507267e43a685fafd.tar.bz2
Merge pull request #2010 from tanwanirahul/master
Ability to customize method names without creating a custom router
Diffstat (limited to 'docs/tutorial/6-viewsets-and-routers.md')
-rw-r--r--docs/tutorial/6-viewsets-and-routers.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/tutorial/6-viewsets-and-routers.md b/docs/tutorial/6-viewsets-and-routers.md
index d55a60de..63dff73f 100644
--- a/docs/tutorial/6-viewsets-and-routers.md
+++ b/docs/tutorial/6-viewsets-and-routers.md
@@ -53,6 +53,8 @@ Notice that we've also used the `@detail_route` decorator to create a custom act
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.
+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.
+
## Binding ViewSets to URLs explicitly
The handler methods only get bound to the actions when we define the URLConf.