diff --git a/auction/models.py b/auction/models.py index 3b8da57..ebc4438 100644 --- a/auction/models.py +++ b/auction/models.py @@ -8,8 +8,8 @@ class Inquiry(models.Model): destination_name = models.CharField(max_length=128) destination_coords = models.PointField() destination_radius = models.IntegerField() - arrival_from = models.DateTimeField() - departure_until = models.DateTimeField() + arrival = models.DateField() + min_nights = models.IntegerField(default=0) budget = models.DecimalField(max_digits=10, decimal_places=2) adults = models.IntegerField() children = models.IntegerField() @@ -35,8 +35,7 @@ class Inquiry(models.Model): class Offer(models.Model): inquiry = models.ForeignKey(Inquiry, models.PROTECT) establishment = models.ForeignKey(Establishment, models.PROTECT) - arrival = models.DateTimeField() - departure = models.DateTimeField() + nights = models.IntegerField() comment = models.TextField(null=True, blank=True) accepted = models.BooleanField(default=False) hidden = models.BooleanField(default=False) \ No newline at end of file