er create_by bug

This commit is contained in:
caoqianming 2022-11-14 14:08:39 +08:00
parent f3b52511b5
commit 692c096f8d
1 changed files with 1 additions and 0 deletions

View File

@ -313,6 +313,7 @@ class ExamViewSet(CreateUpdateCustomMixin, ModelViewSet):
er.start_time = now
er.is_pass = False
er.exam = exam
er.create_by = request.user
er.save()
ret = {}
ret['examrecord'] = er.id