Browse Source

Add property.

feature/upgrade-admin-visits
Drew Larson 7 years ago
parent
commit
f8902152b8
  1. 4
      bikeshop_project/registration/models.py

4
bikeshop_project/registration/models.py

@ -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)

Loading…
Cancel
Save