fix: schedue_mtasks serializer用错
This commit is contained in:
parent
e4f9fd34f0
commit
df2db0ddd9
|
@ -85,7 +85,7 @@ class UtaskViewSet(CustomModelViewSet):
|
||||||
|
|
||||||
任务分解
|
任务分解
|
||||||
"""
|
"""
|
||||||
sr = PkSerializer(data=request.data)
|
sr = SchedueMtasksSerializer(data=request.data)
|
||||||
sr.is_valid(raise_exception=True)
|
sr.is_valid(raise_exception=True)
|
||||||
vdata = sr.validated_data
|
vdata = sr.validated_data
|
||||||
utasks = Utask.objects.filter(
|
utasks = Utask.objects.filter(
|
||||||
|
|
Loading…
Reference in New Issue