django-import-export-extensions
django-import-export-extensions copied to clipboard
Admin page query string is ignored during export
In django admin, we can add search_fields. When the search_fields is enabled, we can then perform a search using Django admin search box, and it will construct a query string like so:
localhost:8000\admin\appname\modelname?q=somesearchterminology
The export functionality in django-import-export library respects this search term. For example, if I did a search for ?q=myusername, and it returns 3 rows instead of the entire queryset, exporting using django-import-export will also only export just the matching 3 rows.
However, it seems like django-import-export-extensions doesn't follow this behavior. eg the search query string is ignored, and it will always return the entire queryset instead of just the ones matching the search term.
Would it be possible to adjust the export functionality of this library to match the original behavior from django-import-export?