JourneyJoker/auction/models.py

16 lines
515 B
Python
Raw Normal View History

from django.contrib.gis.db import models
from localauth.models import User
class Inquiry(models.Model):
user = models.ForeignKey(User, models.PROTECT)
destination_name = models.CharField(max_length=128)
destination_coords = models.PointField()
destination_radius = models.IntegerField()
budget = models.DecimalField(max_digits=10, decimal_places=2)
adults = models.IntegerField()
children = models.IntegerField()
comment = models.TextField()
def get_hotels(self):
pass