From 579763131ae14dceb5511d2808fdc8aa782334e2 Mon Sep 17 00:00:00 2001 From: Maxime Bombar Date: Thu, 11 Oct 2018 13:16:55 +0200 Subject: [PATCH] Add base_name to distinguish users/user and users/homecreation API endpoints --- api/urls.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/urls.py b/api/urls.py index 42f77ec7..e361d732 100644 --- a/api/urls.py +++ b/api/urls.py @@ -86,8 +86,8 @@ router.register_viewset(r'topologie/portprofile', views.PortProfileViewSet, base router.register_viewset(r'topologie/room', views.RoomViewSet) router.register(r'topologie/portprofile', views.PortProfileViewSet) # USERS -router.register_viewset(r'users/user', views.UserViewSet) -router.register_viewset(r'users/homecreation', views.HomeCreationViewSet) +router.register_viewset(r'users/user', views.UserViewSet, base_name='user') +router.register_viewset(r'users/homecreation', views.HomeCreationViewSet, base_name='homecreation') router.register_viewset(r'users/club', views.ClubViewSet) router.register_viewset(r'users/adherent', views.AdherentViewSet) router.register_viewset(r'users/serviceuser', views.ServiceUserViewSet)