Skip to content

Commit

Permalink
[IMP] project_type: pre-commit auto fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
HeliconiaSolutions committed Dec 20, 2024
1 parent 06ba742 commit a485ec8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions project_type/models/project_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ def check_parent_id(self):
def _compute_complete_name(self):
for project_type in self:
if project_type.parent_id:
project_type.complete_name = "{} / {}".format(
project_type.parent_id.complete_name, project_type.name
project_type.complete_name = (
f"{project_type.parent_id.complete_name} / " f"{project_type.name}"
)
else:
project_type.complete_name = project_type.name

0 comments on commit a485ec8

Please sign in to comment.