= 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
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
= 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
3 matches
Mail list logo