fix: 修改bug
This commit is contained in:
parent
6e429e5619
commit
62f8831894
|
@ -260,7 +260,6 @@ class PaperViewSet(ModelViewSet):
|
||||||
sr = PaperCreateUpdateSerializer(instance=paper, data=request.data)
|
sr = PaperCreateUpdateSerializer(instance=paper, data=request.data)
|
||||||
sr.is_valid(raise_exception=True)
|
sr.is_valid(raise_exception=True)
|
||||||
vdata = sr.validated_data
|
vdata = sr.validated_data
|
||||||
print(vdata, 'QQQ')
|
|
||||||
questions_ = vdata.pop('questions_')
|
questions_ = vdata.pop('questions_')
|
||||||
print(questions_, '')
|
print(questions_, '')
|
||||||
vdata['update_by'] = request.user
|
vdata['update_by'] = request.user
|
||||||
|
|
Loading…
Reference in New Issue