From ab8bcccd01ac55d98f689f81efdecd3ef04e45c7 Mon Sep 17 00:00:00 2001 From: stvn Date: Mon, 13 Jul 2020 01:25:17 -0700 Subject: [PATCH] Normalize masquerade response data so that it's easier to work with on the frontend. --- lms/djangoapps/courseware/masquerade.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lms/djangoapps/courseware/masquerade.py b/lms/djangoapps/courseware/masquerade.py index 35c4e5f74b..8829f64a9a 100644 --- a/lms/djangoapps/courseware/masquerade.py +++ b/lms/djangoapps/courseware/masquerade.py @@ -103,7 +103,7 @@ class MasqueradeView(View): 'course_key': course_key_string, 'group_id': course.group_id, 'role': course.role, - 'user_name': course.user_name or ' ', + 'user_name': course.user_name or None, 'user_partition_id': course.user_partition_id, }, 'available': [