Commits

Josh Ourisman committed f2fc768

added TablibAdmin to documentation

Comments (0)

Files changed (1)

 Django Integration
 ------------------
 
-django_tablib now provides a generic Django view to automatically export your
+`django_tablib.views.export`
+    django_tablib provides a generic Django view to automatically export your
 querysets to an Excel spreadsheet. In your urls.py::
 
     (r'^export/$', 'django_tablib.views.export', {
         'model': MyModel,
     })
 
-If you have many models to export you may prefer use the generic export view:
+`django_tablib.views.generic_export`
+    If you have many models to export you may prefer use the generic export view:
 
 #. Add the view to ``urlpatterns`` in ``urls.py``::
 
 
 #. Open ``/export/myapp.simple`` or
    ``/export/myapp.related/?simple__title__iexact=test``
+
+`django_tablib.admin.TablibAdmin`
+    For easy exporting of your models directly from the Django admin, django_tablib now provides a ModelAdmin subclass giving you a button to export to Excel straight from the change list::
+
+    from django.contrib import admin
+    from django_tablib.admin import TablibAdmin
+    from myapp.models import MyModel
+
+    class MyModelAdmin(TablibAdmin):
+        pass
+
+    admin.site.register(MyModel, MyModelAdmin)