fix:edu 增加用户ID

This commit is contained in:
zty 2024-06-06 10:55:25 +08:00
parent 8248d8f8a8
commit 6aeae70b64
1 changed files with 1 additions and 1 deletions

View File

@ -558,7 +558,7 @@ class ExamRecordViewSet(ListModelMixin, DestroyModelMixin, RetrieveModelMixin, G
def get_serializer_class(self):
if self.action == 'retrieve':
now = timezone.now()
if now > self.get_object().exam.end_time:
if now > self.get_object().exam.close_time:
return ExamRecordDetailSerializer
return super().get_serializer_class()