diff --git a/core/models/profiles.py b/core/models/profiles.py index 9924ccb..a5071c3 100644 --- a/core/models/profiles.py +++ b/core/models/profiles.py @@ -66,4 +66,5 @@ class ClientProfile(Profile): main_client = ForeignKey("self", null=True, on_delete=SET_DEFAULT, default=None) def __str__(self): - return f"{self.company if self.company else ''}{' - ' if self.company and self.user.get_full_name else ''}{self.user.get_full_name if self.user.get_full_name else ''}" \ No newline at end of file + name = self.user.get_full_name() + return f"{self.company if self.company else ''}{' - ' if self.company and name else ''}{name if name else ''}"