Removes avenue for crash in reporting attendees.

This commit is contained in:
Christopher Neugebauer 2016-09-23 15:21:57 +10:00
parent e775e5afd9
commit aec9e58edf

View file

@ -485,7 +485,8 @@ def attendee_list(request):
for a in attendees: for a in attendees:
data.append([ data.append([
a.user.id, a.user.id,
a.attendeeprofilebase.attendee_name(), a.attendeeprofilebase.attendee_name()
if hasattr(a, "attendeeprofilebase") else "",
a.user.email, a.user.email,
a.has_registered > 0, a.has_registered > 0,
]) ])