chore: add pyupgrade pre-commit hook
- add --py3-plus flag to pyupgrade hook - add --py36-plus flag to pyupgrade hook
This commit is contained in:
parent
21aaf9bca1
commit
32cb67806a
26 changed files with 90 additions and 86 deletions
|
@ -60,7 +60,7 @@ class User(AbstractBaseUser):
|
|||
objects = UserManager()
|
||||
|
||||
def get_full_name(self):
|
||||
return "{} {}".format(self.first_name, self.last_name)
|
||||
return f"{self.first_name} {self.last_name}"
|
||||
|
||||
def get_short_name(self):
|
||||
return self.first_name
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue