diff --git a/registrasion/models/people.py b/registrasion/models/people.py index e36bd7281ea0d53c993ca42a39aa4fafa78242d9..64d0ac40f77a1d9b2a285af13a5a2564b6cf4be9 100644 --- a/registrasion/models/people.py +++ b/registrasion/models/people.py @@ -67,6 +67,13 @@ class AttendeeProfileBase(models.Model): ''' return None + def attendee_name(self): + if type(self) == AttendeeProfileBase: + real = AttendeeProfileBase.objects.get_subclass(id=self.id) + else: + real = self + return getattr(real, real.name_field()) + def invoice_recipient(self): '''