@@ -64,12 +64,19 @@ class AttendeeProfileBase(models.Model):
The name of a field that stores the attendee's name. This is used
to pre-fill the attendee's name from their Speaker profile, if they
have one.
'''
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):
Returns:
A representation of this attendee profile for the purpose
of rendering to an invoice. This should include any information