修正删除用户的语法错误

This commit is contained in:
yangjian 2022-12-23 04:51:28 +08:00
parent 91c0f9a3a7
commit eb058fff95

View File

@ -520,7 +520,7 @@ class AdminUserDetail(APIView):
def delete(self, request, id):
try:
user = self.get_object(id) # 获取用户
projects = Project.objeects.filter(create_user=user) # 获取用户自己的文集
projects = Project.objects.filter(create_user=user) # 获取用户自己的文集
for p in projects:
Doc.objects.filter(top_doc=p.id).delete()
colloas = ProjectCollaborator.objects.filter(user=user) # 获取参与协作的文集