Fixed formatting and typing
This commit is contained in:
parent
b089198b8c
commit
e456895ca4
2 changed files with 4 additions and 4 deletions
|
|
@ -42,9 +42,9 @@ class User(AbstractBaseUser, TimeStampMixin, PermissionsMixin):
|
||||||
verbose_name_plural = _('Users')
|
verbose_name_plural = _('Users')
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def full_name(self):
|
def full_name(self) -> str:
|
||||||
return f"{self.first_name} {self.last_name}"
|
return f"{self.first_name} {self.last_name}"
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self) -> str:
|
||||||
return self.full_name
|
return self.full_name
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue