瀏覽代碼

Fix: Fix argument name error caused by drf upgrade

pull/207/head
winkidney 4 年之前
父節點
當前提交
c9adc0d59c
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. +1
    -1
      core/views.py
  2. +1
    -1
      users/views.py

+ 1
- 1
core/views.py 查看文件

@@ -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")

+ 1
- 1
users/views.py 查看文件

@@ -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")

Loading…
取消
儲存