I have implemented django-import-export for my project.
It provides me many file format options by default fro both import and export.
How to restrict the file formats to only CSV, XLS and XLSX ?
I have implemented django-import-export for my project.
It provides me many file format options by default fro both import and export.
How to restrict the file formats to only CSV, XLS and XLSX ?
You can override the
get_export_formats()
method of theExportMixin
: