Skip to content

talebbits/wagtail-exportcsv

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

wagtail-exportcsv

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published