Commit 09968deb authored by Patricia Isabella Nava's avatar Patricia Isabella Nava
parents 62511dca dddf37b5
......@@ -135,7 +135,7 @@ class Flight(models.Model):
Destination_Airport = models.ForeignKey(City, on_delete=models.CASCADE, related_name='destination')
def __str__(self):
return ' (' + self.Flight_Code + ' ' + self.Origin_Airport.City_Name + ' to ' + self.Destination_Airport.City_Name
return self.Flight_Code + ' (' + self.Origin_Airport.City_Name + ' to ' + self.Destination_Airport.City_Name + ')'
class Schedule(models.Model):
Sched_Code = models.AutoField(primary_key=True, editable=False, unique=True)
......
No preview for this file type
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment