This commit is contained in:
chenyang
2022-07-02 17:53:54 +08:00
parent 390ae10d84
commit 6dff7c6b4e
7 changed files with 150 additions and 167 deletions
+1
View File
@@ -24,5 +24,6 @@ urlpatterns = [
# ---------------------------------------------------
path('register', MindUserView.as_view()), # 用户注册
path('login', LoginView.as_view()), # 用户登录
path('logout', LogoutView.as_view()), # 用户登出
]
+1
View File
@@ -29,6 +29,7 @@ class JsMindView(LoginRequiredJSONMixin, ListAPIView):
"""
pk = request.GET.get('id')
user = request.user
print(user)
if pk is not None:
mind = CooperationMind.objects.filter(id=pk).first()
# 序列化