From 7bdf89948f0055daf100de82b8e70415dffa4d69 Mon Sep 17 00:00:00 2001 From: Tyrel Souza <923113+tyrelsouza@users.noreply.github.com> Date: Sun, 15 Sep 2019 18:31:12 -0400 Subject: [PATCH] better str --- logbook/flight/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logbook/flight/models.py b/logbook/flight/models.py index b6e092c..0d9a21d 100644 --- a/logbook/flight/models.py +++ b/logbook/flight/models.py @@ -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}"