From 39ae4a3a10fe97393c479941ddec3b00ae6da097 Mon Sep 17 00:00:00 2001 From: Administrator Date: Sun, 20 Nov 2016 12:22:56 +0800 Subject: [PATCH] =?UTF-8?q?[future]=20url=20=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/ops/urls.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/ops/urls.py b/apps/ops/urls.py index 9c28176d7..c2ff9f62c 100644 --- a/apps/ops/urls.py +++ b/apps/ops/urls.py @@ -21,10 +21,10 @@ router.register(r'Extraconf', api_view.ExtraconfViewSet) urlpatterns = [ # Resource Sudo url url(r'^sudo/list$', mvc_view.SudoListView.as_view(), name='sudo-list'), - url(r'^sudo/create', mvc_view.SudoCreateView(), name='sudo-create'), - url(r'^sudo/detail', mvc_view.SudoDetailView(), name='sudo-detail'), - url(r'^sudo/update', mvc_view.SudoUpdateView(), name='sudo-update'), - url(r'^sudo/delete', mvc_view.SudoDeleteView(), name='sudo-delete'), + url(r'^sudo/create', mvc_view.SudoCreateView.as_view(), name='sudo-create'), + url(r'^sudo/detail', mvc_view.SudoDetailView.as_view(), name='sudo-detail'), + url(r'^sudo/update', mvc_view.SudoUpdateView.as_view(), name='sudo-update'), + url(r'^sudo/delete', mvc_view.SudoDeleteView.as_view(), name='sudo-delete'), ] urlpatterns += [