From 3dcbeac873a332f90019a02269c8af397dd0b14d Mon Sep 17 00:00:00 2001 From: Aswanth Vc <69764494+aswanthabam@users.noreply.github.com> Date: Tue, 5 Nov 2024 13:15:05 +0530 Subject: [PATCH] feat(lcv2): give fullname and muid with attendees report --- api/dashboard/learningcircle/learningcircle_views.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/api/dashboard/learningcircle/learningcircle_views.py b/api/dashboard/learningcircle/learningcircle_views.py index a7c6938a..1a16b452 100644 --- a/api/dashboard/learningcircle/learningcircle_views.py +++ b/api/dashboard/learningcircle/learningcircle_views.py @@ -361,7 +361,7 @@ def get(self, request, meet_id): ).get_failure_response() attendees = CircleMeetingAttendees.objects.filter( meet_id=circle_meeting, is_joined=True - ) + ).select_related("user_id") return CustomResponse( general_message="Report fetched successfully", response={ @@ -369,6 +369,8 @@ def get(self, request, meet_id): "report": circle_meeting.report_text, "attendees": { attendee.user_id_id: { + "full_name": attendee.user_id.full_name, + "muid": attendee.user_id.muid, "is_lc_approved": attendee.is_lc_approved, "report": attendee.report_text, "report_link": attendee.report_link,