Re: error on django admin

2011-05-09 Thread Karen Tracey
On Mon, May 9, 2011 at 3:32 AM, chhots wrote: > class Like(models.Model): > smartbuy = models.ForeignKey(SmartBuy) > User = models.ForeignKey(User) > def __unicode__(self): > return self.smartbuy or “Smartbuy #%d” % self.smartbuy > What are you trying to do here? If you are trying to do somethin

Re: error on django admin

2011-05-09 Thread Oleg Lomaka
Try to add __unicode__ method to your SmartBuy model that returns string. On Mon, May 9, 2011 at 10:32 AM, chhots wrote: > class Like(models.Model): > smartbuy = models.ForeignKey(SmartBuy) > User = models.ForeignKey(User) > def __unicode__(self): > return self.smartbuy or “Smartbuy #%d” % self.