Skip to main content

A simple Django wagtail app to download form submissions as CSV.

Project description

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

Detailed documentation is in the “docs” directory.

Installation

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:

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for wagtail-exportcsv, version 0.2.0
Filename, size File type Python version Upload date Hashes
Filename, size wagtail-exportcsv-0.2.0.tar.gz (4.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page