{"action":"closed","issue":{"url":"https://api.github.com/repos/chrisglass/django_polymorphic/issues/219","repository_url":"https://api.github.com/repos/chrisglass/django_polymorphic","labels_url":"https://api.github.com/repos/chrisglass/django_polymorphic/issues/219/labels{/name}","comments_url":"https://api.github.com/repos/chrisglass/django_polymorphic/issues/219/comments","events_url":"https://api.github.com/repos/chrisglass/django_polymorphic/issues/219/events","html_url":"https://github.com/chrisglass/django_polymorphic/issues/219","id":158851030,"number":219,"title":"PolymorphicModel's __str__","user":{"login":"andgein","id":1853477,"avatar_url":"https://avatars.githubusercontent.com/u/1853477?v=3","gravatar_id":"","url":"https://api.github.com/users/andgein","html_url":"https://github.com/andgein","followers_url":"https://api.github.com/users/andgein/followers","following_url":"https://api.github.com/users/andgein/following{/other_user}","gists_url":"https://api.github.com/users/andgein/gists{/gist_id}","starred_url":"https://api.github.com/users/andgein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andgein/subscriptions","organizations_url":"https://api.github.com/users/andgein/orgs","repos_url":"https://api.github.com/users/andgein/repos","events_url":"https://api.github.com/users/andgein/events{/privacy}","received_events_url":"https://api.github.com/users/andgein/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-07T06:47:32Z","updated_at":"2016-06-15T08:38:28Z","closed_at":"2016-06-15T08:38:28Z","body":"I propose to implement default \\_\\_str\\_\\_ for PolymorphicModel as follow or something like:\r\n\r\n```\r\ndef __str__(self):\r\n    instance = self.get_real_instance()\r\n    if self.__str__ != instance.__str__:\r\n         return str(self.get_real_instance())\r\n    return str(super())\r\n```"}}
{"actor":{"display_login":"vdboor"}}