Prepare inquiry and offer models for design change

This commit is contained in:
Kumi 2021-03-24 10:52:56 +01:00
parent 5b4d51341d
commit 9cfe535089

View file

@ -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)