Skip to content

Commit

Permalink
Fix ListSerializer for UserPoints
Browse files Browse the repository at this point in the history
  • Loading branch information
mikaelGusse committed May 27, 2024
1 parent 21fa00d commit d1fcd3e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions exercise/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -551,12 +551,10 @@ 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):
if self.action == 'list':
return self.instance.students
return self.instance.course_staff_and_students


Expand Down

0 comments on commit d1fcd3e

Please sign in to comment.