diff --git a/hello/models.py b/hello/models.py index 1429aea..204bd63 100644 --- a/hello/models.py +++ b/hello/models.py @@ -1,6 +1,6 @@ from django.db import models -# Create your models here. +# Create your models here . class Airport(models.Model): code = models.CharField(max_length=3) @@ -27,7 +27,6 @@ def __str__(self): return f"{self.id}- {self.origin} - {self.duration}" - #MANY TO MANY MODEL For flights and passenegers #p.flights.add(f) where p is passenger and f is flight @@ -40,7 +39,6 @@ class Passenger(models.Model): def __str__(self): return f"{self.first} {self.last}" - #from flights.models import Flight # f = Flight(origin=, destination=, duration=) # f.save()