Change LockerRental address to just include column letter and number

This commit is contained in:
Adam Goldsmith 2022-01-28 17:03:55 -05:00
parent 78f5d79e01
commit c79a748720

View File

@ -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}"