Open
Description
I was trying to import a model resource whose primary key is not the id
. And when I'm trying to import it from the celery import admin section but it's failing and raising errors. But the same file is able to create/update rows using django-import-export
import action.
This is my model resource
class RoleDetailResource(resources.ModelResource):
class Meta:
model = RoleDetail
chunk_size = 5000
import_id_fields = ("owner", )
exclude = ("id", )
And I'm getting the following errors while importing,
But import was successful with django-import-export
action and row can be seen on the list: