Django-admin-action to export items as csv-formatted data.
Project description
Description
Django-admin-csvexport is a django-admin-action, that allows you to export a selection of the fields of your models as csv-formatted data.
Features
selectable model-fields
related models included
customizable csv-format
view or download csv-data
Supported Django-versions
Django-1.11
Django-2.0
Django-2.1
Django-2.2
Installation
Install from pypi.org:
pip install django-admin-csvexport
Add csvexport to your installed apps:
INSTALLED_APPS = [ 'csvexport', ... ]
Add csvexport to the actions of your modeladmin:
from csvexport.actions import csvexport class MyModelAdmin(admin.ModelAdmin): ... actions = [csvexport]
Configuration
The following settings determine the depth of the model references that will be regarded and the value to display for empty fields:
CSV_EXPORT_REFERENCE_DEPTH = 3 CSV_EXPORT_EMPTY_VALUE = ''
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
Built Distribution
Close
Hashes for django-admin-csvexport-1.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3c131befc1ac990d96daa9bc30ce72bce9d6dc7ed57d7316e0c11b84e266873 |
|
MD5 | 74bf170a57dacd24791d0a1d0675cc40 |
|
BLAKE2b-256 | 07b452cafb7b09e78fdd636313433c096be2ed0cbe53da7247b7c7c09d52b7b2 |
Close
Hashes for django_admin_csvexport-1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a574555cfaa9a5414f733bac7d60e76121c2060038445cff5e481385e2e2f61b |
|
MD5 | 590abc2b484b73aa26303c8bd218bbba |
|
BLAKE2b-256 | 724ca658157f450bffb076b23aa56b685bd45ba06a72fcfb5f8832dfffe783dd |