better str

This commit is contained in:
Tyrel Souza 2019-09-15 18:31:12 -04:00
parent 1074d17fb0
commit 7bdf89948f
No known key found for this signature in database
GPG Key ID: 5A9394D4C30AEAC0

View File

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