Commit faf69170 authored by Stephanie Tullao's avatar Stephanie Tullao

Modified format of schedule

parent 74fd40aa
...@@ -121,7 +121,7 @@ class Flight(models.Model): ...@@ -121,7 +121,7 @@ class Flight(models.Model):
Destination_Airport = models.ForeignKey(City, on_delete=models.CASCADE, related_name='destination') Destination_Airport = models.ForeignKey(City, on_delete=models.CASCADE, related_name='destination')
def __str__(self): 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): class Schedule(models.Model):
Sched_Code = models.AutoField(primary_key=True, editable=False, unique=True) Sched_Code = models.AutoField(primary_key=True, editable=False, unique=True)
......
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