DRF: changed base_name to basename.

This commit is contained in:
Josh W 2020-01-21 12:21:07 -05:00
parent b393c7da3e
commit 2f955c8241

View file

@ -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()),