diff --git a/lms/djangoapps/mobile_api/users/views.py b/lms/djangoapps/mobile_api/users/views.py index d7e3dcc28c..2b695ecca7 100644 --- a/lms/djangoapps/mobile_api/users/views.py +++ b/lms/djangoapps/mobile_api/users/views.py @@ -60,7 +60,7 @@ class UserDetail(generics.RetrieveAPIView): """ queryset = ( User.objects.all() - .select_related('profile', 'course_enrollments') + .select_related('profile') ) serializer_class = UserSerializer lookup_field = 'username'