diff --git a/touragency/agency/models.py b/touragency/agency/models.py index 1604a0f..d61759a 100644 --- a/touragency/agency/models.py +++ b/touragency/agency/models.py @@ -7,3 +7,7 @@ class Tour(models.Model): destination_country = models.CharField(max_length=64) 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.nights} nights cost ${self.price}"