Advertisement
Guest User

Untitled

a guest
May 26th, 2015
257
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.50 KB | None | 0 0
  1. class RecommandationHistory(models.Model):
  2.  
  3.     user = models.ForeignKey(User, null=True)
  4.     time = models.DateTimeField(auto_now_add=True)
  5.  
  6.     location_types = models.ManyToManyField(LocationType)
  7.     cuisines = models.ManyToManyField(Cuisine)
  8.  
  9.     location_lat = models.FloatField()
  10.     location_lon = models.FloatField()
  11.     radius = models.FloatField()
  12.  
  13.     def __unicode__(self):
  14.         return "[{}, {}, {}, {}]".format(unicode(self.user), unicode(self.time), str(location_types), str(cuisines))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement