Remove old reimplementation of routes.

remotes/origin/enhancement/email-actions
Andrey Antukh 2013-10-16 17:13:59 +02:00
parent 3a08114eea
commit 4b7b2727a3
1 changed files with 1 additions and 12 deletions

View File

@ -2,20 +2,9 @@
from rest_framework import routers
# Special router for actions.
actions_router = routers.Route(url=r'^{prefix}/{methodname}{trailing_slash}$',
mapping={'{httpmethod}': '{methodname}'},
name='{basename}-{methodnamehyphen}',
initkwargs={})
class DefaultRouter(routers.DefaultRouter):
routes = [
routers.DefaultRouter.routes[0],
actions_router,
routers.DefaultRouter.routes[2],
routers.DefaultRouter.routes[1]
]
pass
__all__ = ["DefaultRouter"]