diff --git a/worldtour/asiatoursagency/models.py b/worldtour/asiatoursagency/models.py index c834b09..4b8e1a9 100644 --- a/worldtour/asiatoursagency/models.py +++ b/worldtour/asiatoursagency/models.py @@ -8,4 +8,9 @@ class Tour(models.Model): number_of_nights = models.IntegerField() price = models.IntegerField() + # This is a string representation of the tour + def __str__(self): + return f'ID: {self.id}: From {self.origin_country} To {self.destination_country}, {self.number_of_nights} nights. Cost: ${self.price}' + +