#10830: ManyRelatedManager needs a __unicode__() method ------------------------------------------+--------------------------------- Reporter: Rupe | Owner: nobody Status: new | Milestone: 1.0.3 Component: Database layer (models, ORM) | Version: 1.0 Keywords: | Stage: Unreviewed Has_patch: 0 | ------------------------------------------+--------------------------------- ManyRelatedManager class in django.db.models.fields.related needs a __unicode__() (and __str__()?) method. Without it my inline form within the admin was creating incorrect SQL and causing an error.
This is what I added: {{{ def __str__(self): return unicode(self._pk_val).encode('utf-8') def __unicode__(self): return unicode(self._pk_val) }}} -- Ticket URL: <http://code.djangoproject.com/ticket/10830> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---