1
0
mirror of https://github.com/fspc/workstand.git synced 2025-04-04 10:03:22 -04:00

Add property.

This commit is contained in:
Drew Larson 2017-06-28 19:24:56 -06:00
parent c49fe5a176
commit f8902152b8

View File

@ -109,6 +109,10 @@ class Member(models.Model):
modified_at = models.DateTimeField(auto_now=True)
involvement = MultiSelectField(choices=involvement_choices, null=True, blank=True)
@property
def full_name(self):
return self.get_full_name()
def get_full_name(self):
# The user is identified by their email address
return '{0} {1}'.format(self.first_name, self.last_name)