I was trying to follow official doc of import-export
:
But I still do not know how to glue it to my admin assuming that:
I want only subset of fields (I created Resource model with listed fields, but It crashes while importing anyway with:
KeyError
full stack bellow.Where - in which method - in my admin class (inheriting of course
ImportExportModelAdmin
and using definedresource_class
) should i place the code responsible for some custom actions I want to happen after validating, that import data are correct but before inserting them into database.
I am not very advanced in Django and will be thankful for some hints. Example of working implementation will be appreciated, so if you know something similar on github - share.