Fix: Fix argument name error caused by drf upgrade

This commit is contained in:
winkidney
2020-05-17 12:43:13 +08:00
parent f0ff5ef4e2
commit c9adc0d59c
2 changed files with 2 additions and 2 deletions

View File

@@ -82,4 +82,4 @@ drf_router.register(r'pins', PinViewSet, basename="pin")
drf_router.register(r'images', ImageViewSet)
drf_router.register(r'boards', BoardViewSet, basename="board")
drf_router.register(r'tags-auto-complete', TagAutoCompleteViewSet)
drf_router.register(r'boards-auto-complete', BoardAutoCompleteViewSet, base_name="board")
drf_router.register(r'boards-auto-complete', BoardAutoCompleteViewSet, basename="board")

View File

@@ -86,4 +86,4 @@ def logout_user(request):
drf_router = routers.DefaultRouter()
drf_router.register(r'users', UserViewSet, base_name="user")
drf_router.register(r'users', UserViewSet, basename="user")