diff --git a/generic/views.py b/generic/views.py index b0971e55..6eb6fae1 100644 --- a/generic/views.py +++ b/generic/views.py @@ -1511,7 +1511,10 @@ class ExamViews(View, LoginRequiredMixin): else: cid = f"u/{cid_user_answer.user.pk}" #cids_user_id_map[cid] = cid_user_answer.user.username - cids_user_id_map[cid] = f"{cid_user_answer.user.first_name} {cid_user_answer.user.last_name}" + name = f"{cid_user_answer.user.first_name} {cid_user_answer.user.last_name}" + if not name.strip(): + name = cid_user_answer.user.username + cids_user_id_map[cid] = cids.add(cid) s = cid_user_answer