DRF: changed base_name to basename.
This commit is contained in:
parent
b393c7da3e
commit
2f955c8241
1 changed files with 7 additions and 7 deletions
|
@ -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()),
|
||||
|
|
Loading…
Reference in a new issue