From aec9e58edfd0398deb9ab56a0541609efe988019 Mon Sep 17 00:00:00 2001 From: Christopher Neugebauer Date: Fri, 23 Sep 2016 15:21:57 +1000 Subject: [PATCH] Removes avenue for crash in reporting attendees. --- registrasion/reporting/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/registrasion/reporting/views.py b/registrasion/reporting/views.py index 3e3f9308..d181aa72 100644 --- a/registrasion/reporting/views.py +++ b/registrasion/reporting/views.py @@ -485,7 +485,8 @@ def attendee_list(request): for a in attendees: data.append([ a.user.id, - a.attendeeprofilebase.attendee_name(), + a.attendeeprofilebase.attendee_name() + if hasattr(a, "attendeeprofilebase") else "", a.user.email, a.has_registered > 0, ])