From 93e178a1e2ce803b6a62e7914e8d05dc3303e9db Mon Sep 17 00:00:00 2001 From: Lokesh Date: Wed, 11 Jan 2017 08:05:27 +0000 Subject: [PATCH] Update urls.py As in your creation of user API, group is not mapped with user so we added new API for mapping. So api_urls is changed for the same. --- mayan/apps/user_management/urls.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mayan/apps/user_management/urls.py b/mayan/apps/user_management/urls.py index d56a45995d..54cf4bc66a 100644 --- a/mayan/apps/user_management/urls.py +++ b/mayan/apps/user_management/urls.py @@ -4,7 +4,7 @@ from django.conf.urls import patterns, url from .api_views import ( APICurrentUserView, APIGroupListView, APIGroupView, APIUserListView, - APIUserView + APIUserView, APIUserGroupMap ) from .views import ( GroupCreateView, GroupDeleteView, GroupEditView, GroupListView, @@ -62,4 +62,6 @@ api_urls = patterns( url( r'^users/current/$', APICurrentUserView.as_view(), name='user-current' ), + url(r'^users/(?P[0-9]+)/groups/$',APIUserGroupMap.as_view(), + name='users-group-map'), )