mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-02-18 12:30:58 +03:00
Merge branch 'master' into i18n
This commit is contained in:
commit
f912faec3f
|
@ -226,9 +226,9 @@ The following example will only route to the `list` and `retrieve` actions, and
|
||||||
),
|
),
|
||||||
Route(
|
Route(
|
||||||
url=r'^{prefix}/{lookup}$',
|
url=r'^{prefix}/{lookup}$',
|
||||||
mapping={'get': 'retrieve'},
|
mapping={'get': 'retrieve'},
|
||||||
name='{basename}-detail',
|
name='{basename}-detail',
|
||||||
initkwargs={'suffix': 'Detail'}
|
initkwargs={'suffix': 'Detail'}
|
||||||
),
|
),
|
||||||
DynamicDetailRoute(
|
DynamicDetailRoute(
|
||||||
url=r'^{prefix}/{lookup}/{methodnamehyphen}$',
|
url=r'^{prefix}/{lookup}/{methodnamehyphen}$',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user