update
This commit is contained in:
@@ -24,5 +24,6 @@ urlpatterns = [
|
||||
# ---------------------------------------------------
|
||||
path('register', MindUserView.as_view()), # 用户注册
|
||||
path('login', LoginView.as_view()), # 用户登录
|
||||
path('logout', LogoutView.as_view()), # 用户登出
|
||||
|
||||
]
|
||||
|
||||
@@ -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()
|
||||
# 序列化
|
||||
|
||||
Reference in New Issue
Block a user