正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -35,7 +35,7 @@ class CreateProject(CreateAPIView): | @@ -35,7 +35,7 @@ class CreateProject(CreateAPIView): | ||
| 35 | if not serializer.is_valid(): | 35 | if not serializer.is_valid(): |
| 36 | raise ValidationError(serializer.errors) | 36 | raise ValidationError(serializer.errors) |
| 37 | else: | 37 | else: |
| 38 | - obj_dict = serializer.data | 38 | + obj_dict = serializer.validated_data |
| 39 | auditors = Auditor.objects.filter(type=obj_dict['type']).order_by('order') | 39 | auditors = Auditor.objects.filter(type=obj_dict['type']).order_by('order') |
| 40 | serializer.save(creator=request.user, auditor=auditors) | 40 | serializer.save(creator=request.user, auditor=auditors) |
| 41 | # 企业微信推送 | 41 | # 企业微信推送 |
-
请 注册 或 登录 后发表评论