{"action":"created","issue":{"url":"https://api.github.com/repos/edoburu/django-parler/issues/93","labels_url":"https://api.github.com/repos/edoburu/django-parler/issues/93/labels{/name}","comments_url":"https://api.github.com/repos/edoburu/django-parler/issues/93/comments","events_url":"https://api.github.com/repos/edoburu/django-parler/issues/93/events","html_url":"https://github.com/edoburu/django-parler/issues/93","id":90205776,"number":93,"title":"Integration with django-mptt fails with the example in the doc under mptt 0.6","user":{"login":"georgema1982","id":727970,"avatar_url":"https://avatars.githubusercontent.com/u/727970?v=3","gravatar_id":"","url":"https://api.github.com/users/georgema1982","html_url":"https://github.com/georgema1982","followers_url":"https://api.github.com/users/georgema1982/followers","following_url":"https://api.github.com/users/georgema1982/following{/other_user}","gists_url":"https://api.github.com/users/georgema1982/gists{/gist_id}","starred_url":"https://api.github.com/users/georgema1982/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/georgema1982/subscriptions","organizations_url":"https://api.github.com/users/georgema1982/orgs","repos_url":"https://api.github.com/users/georgema1982/repos","events_url":"https://api.github.com/users/georgema1982/events{/privacy}","received_events_url":"https://api.github.com/users/georgema1982/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-22T20:32:57Z","updated_at":"2015-08-31T11:59:20Z","closed_at":"2015-08-31T11:59:20Z","body":"Under mptt 0.6, the example codes for integration with django-mptt in the doc (http://django-parler.readthedocs.org/en/latest/advanced/mptt.html) won't work. You would see errors like:\r\n\r\nValueError: @python_2_unicode_compatible cannot be applied to Category because it doesn't define __str__().\r\n\r\nI have to swap TranslatableModel and MPTTModel's positions to make python_2_unicode_compatible happy.\r\n\r\nA similar issue is here: https://github.com/edoburu/django-parler/issues/91\r\n\r\nMaybe TranslatableModel has to be the last parent if python_2_unicode_compatible is used?"},"comment":{"url":"https://api.github.com/repos/edoburu/django-parler/issues/comments/136350767","html_url":"https://github.com/edoburu/django-parler/issues/93#issuecomment-136350767","issue_url":"https://api.github.com/repos/edoburu/django-parler/issues/93","id":136350767,"user":{"login":"vdboor","id":200303,"avatar_url":"https://avatars.githubusercontent.com/u/200303?v=3","gravatar_id":"","url":"https://api.github.com/users/vdboor","html_url":"https://github.com/vdboor","followers_url":"https://api.github.com/users/vdboor/followers","following_url":"https://api.github.com/users/vdboor/following{/other_user}","gists_url":"https://api.github.com/users/vdboor/gists{/gist_id}","starred_url":"https://api.github.com/users/vdboor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vdboor/subscriptions","organizations_url":"https://api.github.com/users/vdboor/orgs","repos_url":"https://api.github.com/users/vdboor/repos","events_url":"https://api.github.com/users/vdboor/events{/privacy}","received_events_url":"https://api.github.com/users/vdboor/received_events","type":"User","site_admin":false},"created_at":"2015-08-31T11:59:20Z","updated_at":"2015-08-31T11:59:20Z","body":"I find this quite a strange issue. I've just released django-categories-i18n, where I didn't run into this issue at all. I didn't get this error regarding `@python_2_unicode_compatible`, this just worked nicely.\r\n\r\nFor an example how to use parler + mptt, you can now also look at: https://github.com/edoburu/django-categories-i18n Note this package uses a separate `TranslatedFieldsModel` instead of the `TranslatedFields(..)` construct, but the class design remains the same."}}