From f8902152b82804656be31b8adcb4df2b8f97faac Mon Sep 17 00:00:00 2001 From: Drew Larson Date: Wed, 28 Jun 2017 19:24:56 -0600 Subject: [PATCH] Add property. --- bikeshop_project/registration/models.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bikeshop_project/registration/models.py b/bikeshop_project/registration/models.py index 4780846..9eec538 100644 --- a/bikeshop_project/registration/models.py +++ b/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)