Skip to content

Commit 6d51162

Browse files
committed
remove call to profile.get_name from DectRegistration.__str__ method
1 parent 3bddf3d commit 6d51162

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/phonebook/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def save(self, *args, **kwargs) -> None:
9696
super().save(*args, **kwargs)
9797

9898
def __str__(self) -> str:
99-
return f"{self.number or self.letters} ({self.user.profile.get_name})"
99+
return f"{self.number or self.letters}"
100100

101101
def check_unique_ipei(self) -> None:
102102
"""Check IPEI is unique."""

0 commit comments

Comments
 (0)