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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file wagtail-exportcsv-0.2.0.tar.gz
.
File metadata
- Download URL: wagtail-exportcsv-0.2.0.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 978bfd388056cd77141a1cba6b370b8eb06ab53294fc923bb83755a1ca167685 |
|
MD5 | 18efe7323c968246da327e92fe4db6e0 |
|
BLAKE2b-256 | d152ac05c5f63bfd8587c6c42c8a0a39f84812693c783b2aba45ac3cdbbbcc03 |