Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class RecommandationHistory(models.Model):
- user = models.ForeignKey(User, null=True)
- time = models.DateTimeField(auto_now_add=True)
- location_types = models.ManyToManyField(LocationType)
- cuisines = models.ManyToManyField(Cuisine)
- location_lat = models.FloatField()
- location_lon = models.FloatField()
- radius = models.FloatField()
- def __unicode__(self):
- return "[{}, {}, {}, {}]".format(unicode(self.user), unicode(self.time), str(location_types), str(cuisines))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement