better str
This commit is contained in:
parent
1074d17fb0
commit
7bdf89948f
@ -43,4 +43,4 @@ class Flight(models.Model):
|
||||
link = models.CharField(max_length=200, blank=True)
|
||||
|
||||
def __str__(self):
|
||||
return f"{self.plane} {self.total_time}h - {self.airport_depart} -> {self.airport_arrive}"
|
||||
return f"{self.flight_date}: {self.plane} {self.total_time}h - {self.airport_depart} -> {self.airport_arrive}"
|
||||
|
Loading…
Reference in New Issue
Block a user