Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions hello/models.py
Original file line number Diff line number Diff line change
@@ -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)
Expand All @@ -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
Expand All @@ -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()
Expand Down