From 2139dd409352cac92d61097344e635b41036fcf9 Mon Sep 17 00:00:00 2001 From: Lincoln Simba Date: Wed, 2 Jan 2019 15:30:06 +0300 Subject: [PATCH] Provide base_name for hyperlinked user field. fixes #1518 Signed-off-by: Lincoln Simba --- onadata/apps/api/urls.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/onadata/apps/api/urls.py b/onadata/apps/api/urls.py index 57cbd1d2d2..e484417263 100644 --- a/onadata/apps/api/urls.py +++ b/onadata/apps/api/urls.py @@ -4,7 +4,6 @@ """ from django.conf.urls import url from django.contrib import admin - from rest_framework import routers from rest_framework.urlpatterns import format_suffix_patterns @@ -148,5 +147,5 @@ def get_urls(self): r'submissions', XFormSubmissionViewSet, base_name='submissions') router.register(r'teams', TeamViewSet) router.register(r'user', ConnectViewSet) -router.register(r'users', UserViewSet) +router.register(r'users', UserViewSet, base_name='user') router.register(r'widgets', WidgetViewSet, base_name='widgets')