Re: Exception Value: coercing to Unicode: need string or buffer, ContentType found

2009-07-20 Thread Joshua Russo
On Mon, Jul 20, 2009 at 8:30 PM, sjtirtha wrote: > > class ContentAssoc(models.Model): > object_a = models.PositiveIntegerField() > type_a = models.ForeignKey(ContentType, related_name='type_a') > object_b = models.PositiveIntegerField() > type_b =

Exception Value: coercing to Unicode: need string or buffer, ContentType found

2009-07-20 Thread sjtirtha
go\contrib\admin\options.py" in log_addition 294. object_repr = force_unicode(object), File "C:\Python25\lib\site-packages\django\utils\encoding.py" in force_unicode 49. s = unicode(s) Exception Type: TypeError at /admin/film/film