Change LockerRental address to just include column letter and number
This commit is contained in:
parent
78f5d79e01
commit
c79a748720
@ -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}"
|
||||
|
Loading…
Reference in New Issue
Block a user