From a3a69f655524dc751629e91fddce94ec158405f6 Mon Sep 17 00:00:00 2001 From: mikaelGusse Date: Mon, 27 May 2024 13:50:02 +0300 Subject: [PATCH] Fix ListSerializer for UserPoints --- exercise/api/views.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/exercise/api/views.py b/exercise/api/views.py index 9ad16ac73..66aafa870 100644 --- a/exercise/api/views.py +++ b/exercise/api/views.py @@ -26,7 +26,6 @@ OnlyCourseStaffPermission, ) from course.api.mixins import CourseResourceMixin -from course.api.serializers import StudentBriefSerializer from exercise.async_views import _post_async_submission from ..models import ( @@ -551,7 +550,7 @@ class CoursePointsViewSet(ListSerializerMixin, lookup_url_kwarg = 'user_id' lookup_value_regex = REGEX_INT_ME parent_lookup_map = {} - listserializer_class = StudentBriefSerializer + listserializer_class = UserPointsSerializer serializer_class = UserPointsSerializer def get_queryset(self):