{"action":"closed","issue":{"url":"https://api.github.com/repos/django-import-export/django-import-export/issues/483","repository_url":"https://api.github.com/repos/django-import-export/django-import-export","labels_url":"https://api.github.com/repos/django-import-export/django-import-export/issues/483/labels{/name}","comments_url":"https://api.github.com/repos/django-import-export/django-import-export/issues/483/comments","events_url":"https://api.github.com/repos/django-import-export/django-import-export/issues/483/events","html_url":"https://github.com/django-import-export/django-import-export/issues/483","id":163136197,"number":483,"title":"import-export not work with mptt","user":{"login":"leotop","id":1918277,"avatar_url":"https://avatars.githubusercontent.com/u/1918277?v=3","gravatar_id":"","url":"https://api.github.com/users/leotop","html_url":"https://github.com/leotop","followers_url":"https://api.github.com/users/leotop/followers","following_url":"https://api.github.com/users/leotop/following{/other_user}","gists_url":"https://api.github.com/users/leotop/gists{/gist_id}","starred_url":"https://api.github.com/users/leotop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leotop/subscriptions","organizations_url":"https://api.github.com/users/leotop/orgs","repos_url":"https://api.github.com/users/leotop/repos","events_url":"https://api.github.com/users/leotop/events{/privacy}","received_events_url":"https://api.github.com/users/leotop/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-06-30T10:48:18Z","updated_at":"2016-07-01T06:57:48Z","closed_at":"2016-07-01T06:57:48Z","body":"If i use import-export for mptt model, export fine, import error\r\n\r\nhttp://stackoverflow.com/questions/38120853/how-use-django-import-export-and-mptt\r\n\r\n\r\n\r\nDjango-Import-Export not imported file if I use django-mptt\r\n\r\nModel\r\n\r\nclass Page(MPTTModel):\r\n    name = models.CharField(max_length=250)\r\n    parent = TreeForeignKey('self', null=True, blank=True, related_name='children', db_index=True)\r\n    content = models.TextField(blank=True, null=True)\r\n\r\nclass MPTTMeta:\r\n        order_insertion_by = ['name']\r\n\r\n    def __str__(self):\r\n        return self.name\r\n\r\nAdmin\r\n\r\nclass PageResource(resources.ModelResource):\r\n\r\n    class Meta:\r\n        model = Page\r\n        fields = ('id', 'title', 'name', 'content',)\r\n        exclude = ('parent', )\r\n\r\n\r\n@admin.register(Page)\r\nclass PageAdmin(ImportExportModelAdmin):\r\n    empty_value_display = '-empty-'\r\n\r\nIf I exclude parent error Line number: 1 - 'module' object has no attribute 'izip'\r\n\r\nIf parent blank or value=name or id, error Line number: 1 - Cannot assign \"''\": \"Page.parent\" must be a \"Page\" instance.\r\n\r\nExclude not work in class Meta.\r\n\r\nHow import data?\r\n"}}
{"actor":{"display_login":"leotop"}}