Prepare inquiry and offer models for design change
This commit is contained in:
parent
5b4d51341d
commit
9cfe535089
1 changed files with 3 additions and 4 deletions
|
@ -8,8 +8,8 @@ class Inquiry(models.Model):
|
||||||
destination_name = models.CharField(max_length=128)
|
destination_name = models.CharField(max_length=128)
|
||||||
destination_coords = models.PointField()
|
destination_coords = models.PointField()
|
||||||
destination_radius = models.IntegerField()
|
destination_radius = models.IntegerField()
|
||||||
arrival_from = models.DateTimeField()
|
arrival = models.DateField()
|
||||||
departure_until = models.DateTimeField()
|
min_nights = models.IntegerField(default=0)
|
||||||
budget = models.DecimalField(max_digits=10, decimal_places=2)
|
budget = models.DecimalField(max_digits=10, decimal_places=2)
|
||||||
adults = models.IntegerField()
|
adults = models.IntegerField()
|
||||||
children = models.IntegerField()
|
children = models.IntegerField()
|
||||||
|
@ -35,8 +35,7 @@ class Inquiry(models.Model):
|
||||||
class Offer(models.Model):
|
class Offer(models.Model):
|
||||||
inquiry = models.ForeignKey(Inquiry, models.PROTECT)
|
inquiry = models.ForeignKey(Inquiry, models.PROTECT)
|
||||||
establishment = models.ForeignKey(Establishment, models.PROTECT)
|
establishment = models.ForeignKey(Establishment, models.PROTECT)
|
||||||
arrival = models.DateTimeField()
|
nights = models.IntegerField()
|
||||||
departure = models.DateTimeField()
|
|
||||||
comment = models.TextField(null=True, blank=True)
|
comment = models.TextField(null=True, blank=True)
|
||||||
accepted = models.BooleanField(default=False)
|
accepted = models.BooleanField(default=False)
|
||||||
hidden = models.BooleanField(default=False)
|
hidden = models.BooleanField(default=False)
|
Loading…
Reference in a new issue