diff --git a/bikeshop_project/registration/models.py b/bikeshop_project/registration/models.py index fb5ef45..b8a5ad0 100644 --- a/bikeshop_project/registration/models.py +++ b/bikeshop_project/registration/models.py @@ -65,6 +65,10 @@ class Member(AbstractBaseUser, PermissionsMixin): USERNAME_FIELD = 'email' # REQUIRED_FIELDS = [] + @property + def full_name(self): + return '{0} {1}'.format(self.first_name, self.last_name) + def get_full_name(self): # The user is identified by their email address if self.first_name and self.last_name: