fix: task2do my 错误

This commit is contained in:
caoqianming 2023-05-22 16:35:57 +08:00
parent c9c9d136a1
commit 36b608197e
1 changed files with 1 additions and 1 deletions

View File

@ -537,7 +537,7 @@ class Task2DoViewSet(ListModelMixin, GenericViewSet):
else:
mydept = request.user.dept
belong_depts = get_child_queryset2(mydept)
queryset = queryset.filter(belong_dept = belong_depts)
queryset = queryset.filter(belong_dept__in = belong_depts)
serializer = Task2DoSerializer(queryset, many=True)
return Response(serializer.data)