From 2f955c824140a3b1ff2866b03fb70ccb9795438d Mon Sep 17 00:00:00 2001 From: Josh W Date: Tue, 21 Jan 2020 12:21:07 -0500 Subject: [PATCH] DRF: changed base_name to basename. --- savepointradio/api/urls.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/savepointradio/api/urls.py b/savepointradio/api/urls.py index 2c53d47..45d810d 100644 --- a/savepointradio/api/urls.py +++ b/savepointradio/api/urls.py @@ -22,14 +22,14 @@ class OptionalSlashRouter(DefaultRouter): router = OptionalSlashRouter() -router.register(r'history', HistoryViewSet, base_name='history') -router.register(r'profiles', ProfileViewSet, base_name='profile') +router.register(r'history', HistoryViewSet, basename='history') +router.register(r'profiles', ProfileViewSet, basename='profile') -router.register(r'albums', AlbumViewSet, base_name='album') -router.register(r'artists', ArtistViewSet, base_name='artist') -router.register(r'games', GameViewSet, base_name='game') -router.register(r'stores', StoreViewSet, base_name='store') -router.register(r'songs', SongViewSet, base_name='song') +router.register(r'albums', AlbumViewSet, basename='album') +router.register(r'artists', ArtistViewSet, basename='artist') +router.register(r'games', GameViewSet, basename='game') +router.register(r'stores', StoreViewSet, basename='store') +router.register(r'songs', SongViewSet, basename='song') urlpatterns = [ path('next/', NextRequest.as_view()),