A simple Django wagtail app to download form submissions as CSV.
wagtail-exportcsv is a simple Django app to export form submission as CSV.
Detailed documentation is in the “docs” directory.
pip install wagtail-exportcsv or pip install -e firstname.lastname@example.org:7aleb/wagtail-exportcsv.git#egg=wagtail_exportcsv_dev
And add wagtail_exportcsv to INSTALLED_APPS
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
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.