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.

Source Distribution

wagtail-exportcsv-0.1.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

wagtail_exportcsv-0.1-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file wagtail-exportcsv-0.1.tar.gz.

File metadata

  • Download URL: wagtail-exportcsv-0.1.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.5

File hashes

Hashes for wagtail-exportcsv-0.1.tar.gz
Algorithm Hash digest
SHA256 130767092d3cf6efed3f89a6f9986c78f82f49b9ac32282c4b13b7bf4903d97c
MD5 e448abd8a1da6be165cd9716f514bcd0
BLAKE2b-256 f754dde50bf28ee0639ec1bdf8ff78423226499feaabdf21280ea1d4681b40a6

See more details on using hashes here.

File details

Details for the file wagtail_exportcsv-0.1-py3-none-any.whl.

File metadata

  • Download URL: wagtail_exportcsv-0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.5

File hashes

Hashes for wagtail_exportcsv-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e194fa4a04df4251863252d0a2e843edc1630595f35b8f0cb870cebadb42cc40
MD5 f42e44f6b8293965e04f59dd332a1e40
BLAKE2b-256 dab9246eddf302090696ab83e455acfa52bccac02edb3954985f7994d34377da

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page