How to Solve NameError: name 'ImportExportModelAdmin' is not defined -- import_export

Erorr: name 'ImportExportModelAdmin' is not defined

NameError: name 'ImportExportModelAdmin' is not defined

Solution: Import the 'ImportExportModelAdmin' module

# Add the following line to the top of your code
from import_export.admin import ImportExportModelAdmin

 

For more information:
import_export ImportExportModelAdmin