diff --git a/rentals/models.py b/rentals/models.py index 42668bb..252b8f9 100644 --- a/rentals/models.py +++ b/rentals/models.py @@ -74,7 +74,7 @@ class LockerRental(models.Model): def address(self) -> str: letter = self.locker_unit.letter_for_column(self.column) number = self.locker_unit.number_for_locker(self.column, self.row) - return f"{self.locker_unit}-{letter}{number}" + return f"{letter}{number}" def __str__(self): - return f"{self.user}: {self.address}" + return f"{self.user}: {self.locker_unit}-{self.address}"