evgkirov / django-export-action

Generic export action for Django's Admin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Django Export Action

https://travis-ci.org/fgmacedo/django-export-action.svg?branch=master https://img.shields.io/codecov/c/github/fgmacedo/django-export-action/master.svg?label=branch%20coverage

Generic export action for Django's Admin

Quickstart

Install Django Export Action:

pip install django-export-action

Include it on INSTALLED_APPS:

'export_action',

Add to urls:

url(r'^export_action/', include("export_action.urls", namespace="export_action")),

Usage

Go to any admin page, select fields, then select the export to xls action. Then check off any fields you want to export.

Features

  • Generic action to enable export data from Admin.
  • Automatic traversal of model relations.
  • Selection of fields to export.
  • Can export to XSLx, CSV and HTML.

Running Tests

Does the code actually work?

source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install -r requirements_test.txt
(myenv) $ py.test

Security

This project assumes staff users are trusted. There may be ways for users to manipulate this project to get more data access than they should have.

About

Generic export action for Django's Admin

License:MIT License


Languages

Language:Python 82.4%Language:HTML 13.1%Language:Makefile 4.5%