diff options
author | Kedar Aitawdekar <kedar2a@gmail.com> | 2015-06-18 21:51:00 +0530 |
---|---|---|
committer | Kedar Aitawdekar <kedar2a@gmail.com> | 2015-06-18 21:51:00 +0530 |
commit | a221ab937d9399cd97b53c67dbbba5b2765fb22f (patch) | |
tree | 7d57ff022480390c6962aaef227cfdae06dacb88 /gnowsys-ndf/gnowsys_ndf/ndf/urls | |
parent | 20b65381a4b6f7f4a4365d6f33cb03cf84d05a1e (diff) | |
download | gnowsys-a221ab937d9399cd97b53c67dbbba5b2765fb22f.tar.gz |
Updated url for group create/edit with class name
Diffstat (limited to 'gnowsys-ndf/gnowsys_ndf/ndf/urls')
-rw-r--r-- | gnowsys-ndf/gnowsys_ndf/ndf/urls/group.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gnowsys-ndf/gnowsys_ndf/ndf/urls/group.py b/gnowsys-ndf/gnowsys_ndf/ndf/urls/group.py index 79e11ba..0b82cc3 100644 --- a/gnowsys-ndf/gnowsys_ndf/ndf/urls/group.py +++ b/gnowsys-ndf/gnowsys_ndf/ndf/urls/group.py @@ -1,12 +1,12 @@ from django.conf.urls import patterns, url -from gnowsys_ndf.ndf.views.group import EditGroup +from gnowsys_ndf.ndf.views.group import GroupCreateEditHandler urlpatterns = patterns('gnowsys_ndf.ndf.views.group', url(r'^[/]$', 'group', name='group'), url(r'^/(?P<app_id>[\w-]+)$', 'group', name='group'), - url(r'^/create_group/', 'create_group', name='create_group'), + url(r'^/create_group/', GroupCreateEditHandler.as_view(), {'action': 'create'}, name='create_group'), + url(r'^/edit_group/', GroupCreateEditHandler.as_view(), {'action': 'edit'}, name='edit_group'), url(r'^/group_publish/(?P<node>[\w-]+)$', 'publish_group', name='publish_group'), - url(r'^/edit_group/', EditGroup.as_view(), name='edit_group'), url(r'^/switch_group/(?P<node_id>[\w-]+)$', 'switch_group', name='switch_group'), url(r'^/app_selection/', 'app_selection', name='app_selection'), url(r'^/create_sub_group/', 'create_sub_group', name='create_sub_group'), |