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
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.
2 matches
Mail list logo