Encodes staff profile names as they can be unicode

This commit is contained in:
Giulio Gratta
2018-03-20 14:13:31 -07:00
parent aaf9290dce
commit 0ffe133f68

View File

@@ -559,7 +559,7 @@ class Staffing(SysadminDashboardView):
for role in roles:
for user in role(course.id).users_with_role():
datum = [course.id, role, user.username, user.email,
user.profile.name]
user.profile.name.encode('utf-8')]
data.append(datum)
header = [_('course_id'),
_('role'), _('username'),