From e1c1b0c1a883cc8b7a60056857e44305d6560c79 Mon Sep 17 00:00:00 2001 From: chandru shane <62532606+chandru-shane@users.noreply.github.com> Date: Sun, 15 Aug 2021 08:02:52 +0530 Subject: [PATCH] Update models.py get_full_name method fix in UserAccount Model --- backend/accounts/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/accounts/models.py b/backend/accounts/models.py index 4ac5b06..57c0028 100644 --- a/backend/accounts/models.py +++ b/backend/accounts/models.py @@ -27,7 +27,7 @@ class UserAccount(AbstractBaseUser, PermissionsMixin): REQUIRED_FIELDS = ['first_name', 'last_name'] def get_full_name(self): - return self.first_name + return f"{self.first_name} {self.last_name}" def get_short_name(self): return self.first_name