Re: coercing to Unicode: need string or buffer, Post found

2009-07-20 Thread AKK
= models.CharField(max_length=5000) > > >    def __unicode__(self): > >        return self.comment_post > > > and when i true to add a comment using the admin pages i get : > > > coercing to Unicode: need string or buffer, Post found > > > presuambly this

Re: coercing to Unicode: need string or buffer, Post found

2009-07-20 Thread Alex Gaynor
comment using the admin pages i get : > > coercing to Unicode: need string or buffer, Post found > > presuambly this is something to do with  return self.comment_post but > what should i do to fix it > > thanks > > > To fix it you can just return unicode(self

coercing to Unicode: need string or buffer, Post found

2009-07-20 Thread AKK
= models.BooleanField(default=False) comment_author = models.CharField(max_length=5000) def __unicode__(self): return self.comment_post and when i true to add a comment using the admin pages i get : coercing to Unicode: need string or buffer, Post found presuambly this is something to do