add application Preferences
This commit is contained in:
parent
53786a7a4a
commit
709ee8c454
1 changed files with 2 additions and 2 deletions
|
|
@ -26,7 +26,7 @@ class CRUDRouter(DefaultRouter):
|
|||
),
|
||||
# Detail route.
|
||||
Route(
|
||||
url=r'^{prefix}/item{trailing_slash}$',
|
||||
url=r'^{prefix}{trailing_slash}$',
|
||||
mapping={
|
||||
'get': 'retrieve',
|
||||
'put': 'update',
|
||||
|
|
@ -40,7 +40,7 @@ class CRUDRouter(DefaultRouter):
|
|||
# Dynamically generated detail routes. Generated using
|
||||
# @action(detail=True) decorator on methods of the viewset.
|
||||
DynamicRoute(
|
||||
url=r'^{prefix}/item/{url_path}{trailing_slash}$',
|
||||
url=r'^{prefix}/{url_path}{trailing_slash}$',
|
||||
name='{basename}-{url_name}',
|
||||
detail=True,
|
||||
initkwargs={}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue