Browse Source

Fix: Fix argument name error caused by drf upgrade

pull/207/head
winkidney 4 years ago
parent
commit
c9adc0d59c
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      core/views.py
  2. +1
    -1
      users/views.py

+ 1
- 1
core/views.py View File

@@ -82,4 +82,4 @@ drf_router.register(r'pins', PinViewSet, basename="pin")
drf_router.register(r'images', ImageViewSet) drf_router.register(r'images', ImageViewSet)
drf_router.register(r'boards', BoardViewSet, basename="board") drf_router.register(r'boards', BoardViewSet, basename="board")
drf_router.register(r'tags-auto-complete', TagAutoCompleteViewSet) 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")

+ 1
- 1
users/views.py View File

@@ -86,4 +86,4 @@ def logout_user(request):




drf_router = routers.DefaultRouter() drf_router = routers.DefaultRouter()
drf_router.register(r'users', UserViewSet, base_name="user")
drf_router.register(r'users', UserViewSet, basename="user")

Loading…
Cancel
Save