FIX: dav_events: string that contains realnames was not unicode.
This commit is contained in:
@@ -217,9 +217,9 @@ class EventRegistrationsView(EventPermissionMixin, generic.DetailView):
|
||||
context['participants'] = participants
|
||||
|
||||
if participants.count() > 1:
|
||||
email_list = ['"{}" <{}>'.format(p.get_full_name(), p.email_address) for p in participants]
|
||||
email_list = [u'"{}" <{}>'.format(p.get_full_name(), p.email_address) for p in participants]
|
||||
email_list.sort()
|
||||
context['participant_emails'] = ', '.join(email_list)
|
||||
context['participant_emails'] = u', '.join(email_list)
|
||||
|
||||
if 'participant_formset' not in context:
|
||||
context['participant_formset'] = self.get_participant_formset()
|
||||
|
||||
Reference in New Issue
Block a user