Skip to content

Commit

Permalink
Provide base_name for hyperlinked user field.
Browse files Browse the repository at this point in the history
fixes #1518

Signed-off-by: Lincoln Simba <[email protected]>
  • Loading branch information
lincmba committed Jan 2, 2019
1 parent b53032a commit ab23e4c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions onadata/apps/api/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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')

0 comments on commit ab23e4c

Please sign in to comment.