Skip to content

Commit

Permalink
fix: properties allowing for empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
rdahis committed Feb 5, 2025
1 parent 07c8538 commit 503c01f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/apps/account/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -507,10 +507,10 @@ class Meta:
verbose_name_plural = "Careers"

def __str__(self):
return f"{self.account.email} @{self.role_new.name}"
return f"{self.account.email} @{self.role_new.name}" if self.role_new else ""

def get_team(self):
return self.team_new.name
return self.team_new.name if self.team_new else ""

get_team.short_description = "Team"

Expand Down

0 comments on commit 503c01f

Please sign in to comment.