Metadata-Version: 2.1
Name: wagtail-exportcsv
Version: 0.1
Summary: A simple Django wagtail app to download form submissions as CSV.
Home-page: https://github.com/7aleb/wagtail-exportcsv
Author: Mohammad Taleb
Author-email: shimultaleb@gamil.com
License: BSD License
Platform: UNKNOWN
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Framework :: Django :: 2.1
Classifier: Framework :: Wagtail
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Requires-Dist: django-import-export

==================
wagtail-exportcsv
==================

wagtail-exportcsv is a simple Django app to export form submission as CSV.

Detailed documentation is in the "docs" directory.

Installation
------------

.. code-block::

    pip install wagtail-exportcsv

    or

    pip install -e git+git@github.com:7aleb/wagtail-exportcsv.git#egg=wagtail_exportcsv_dev

And add ``wagtail_exportcsv`` to ``INSTALLED_APPS``

Quick start
-----------

First, create a resource class to define a CSV export. Then add
``ExportModelAdminMixin`` to your Wagtail ``ModelAdmin`` class. Example:

.. code-block:: python

    from import_export import resources
    from wagtail.contrib.modeladmin.options import ModelAdmin

    class ExampleResource(resources.ModelResource):

        class Meta:
            model = ExampleModel
            fields = ('first_name', 'email',)


    class ExampleAdmin(ExportModelAdminMixin, ModelAdmin):

        model = ExampleModel
        resource_class = ExampleResource


