Fix speaker username in schedule JSON

This commit is contained in:
Joel Addison 2022-01-15 13:31:39 +10:00
parent 457a79730d
commit f958b3a7a7

View file

@ -225,7 +225,7 @@ def make_speaker_dict(speaker, can_view_contact_details):
'picture_url': speaker_photo(None, speaker, 120), 'picture_url': speaker_photo(None, speaker, 120),
'code': speaker.code, 'code': speaker.code,
'biography': speaker.biography, 'biography': speaker.biography,
'username': speaker.user_id if can_view_contact_details else '', 'username': speaker.user.username if can_view_contact_details else '',
} }