Skip to content

Commit

Permalink
Fix ListSerializer for UserPoints
Browse files Browse the repository at this point in the history
  • Loading branch information
mikaelGusse authored and ihalaij1 committed Jun 4, 2024
1 parent 1604329 commit a3a69f6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions exercise/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit a3a69f6

Please sign in to comment.