django-import-export, using the foreign key widget
I seem to be having some issues trying to figure out how to use the ForeignKeyWidget in the django-import-export package. I’m hoping someone here will be able to point out what is wrong with my code. I’m able to export the data I want except for the asset. I would like it to be the name of the asset, but it is exporting the ID.
ForeignKeyWidget in django-import-export Showing ID Instead of Custom Column Value
I am using the django-import-export library to handle data import and export in my Django application. I have several models with ForeignKey relationships, and I want to display and use the custom column values instead of the IDs in my import/export files.