Fixed formatting and typing
This commit is contained in:
parent
b089198b8c
commit
e456895ca4
2 changed files with 4 additions and 4 deletions
|
|
@ -3,8 +3,8 @@ from django.utils.translation import gettext_lazy as _
|
||||||
|
|
||||||
class TimeStampMixin(Model):
|
class TimeStampMixin(Model):
|
||||||
|
|
||||||
created_at = DateTimeField(verbose_name="Created At", auto_now_add=True)
|
created_at = DateTimeField(verbose_name = "Created At", auto_now_add = True)
|
||||||
updated_at = DateTimeField(verbose_name="Updated At", auto_now=True)
|
updated_at = DateTimeField(verbose_name = "Updated At", auto_now = True)
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
abstract = True
|
abstract = True
|
||||||
|
|
@ -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