Skip to content

Commit eed59d7

Browse files
committed
Merge pull request django-import-export#148 from tabac/develop
Add documentation for ExportActionModelAdmin
2 parents 14fdcbd + 64f4013 commit eed59d7

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed
Loading

docs/getting_started.rst

+21
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,27 @@ Admin integration is achived by subclassing
249249

250250
A screenshot of the confirm import view.
251251

252+
|
253+
254+
Another approach to exporting data is by subclassing
255+
``ImportExportActionModelAdmin`` which implements export as an admin action.
256+
As a result it's possible to export a list of objects selected on the change
257+
list page::
258+
259+
from import_export.admin import ImportExportActionModelAdmin
260+
261+
262+
class BookAdmin(ImportExportActionModelAdmin):
263+
resource_class = BookResource
264+
pass
265+
266+
267+
.. figure:: _static/images/django-import-export-action.png
268+
269+
A screenshot of the change view with Import and Export as an admin action.
270+
271+
|
272+
252273
.. seealso::
253274

254275
:doc:`/api_admin`

0 commit comments

Comments
 (0)