blue68 / django-report-builder

A GUI for Django ORM. Build custom queries and display results. Targets sys admins and capable end users who might not be able to program.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

django-report-builder

A GUI for Django ORM. Build custom queries and display results. Targets sys admins and capable end users who might not be able to program or gain direct interactive shell access.

What's finished?

  • Add filters
  • Add display fields
  • Preview and create xlsx reports
  • Very simple security, user must have change or "view" permission to view reports. Unprivileged users can still build reports and see database schema.
  • Model properties (thanks yekibud)
  • Support for django-custom-fields

What isn't

  • "or" filters together
  • More exports, views
  • Decent form validation

Installation

  1. pip install django-report-builder
  2. Add report_builder to INSTALLED_APPS
  3. Add url(r'^report_builder/', include('report_builder.urls')) to url.py url patterns
  4. syncdb (you may use south)
  5. Use admin access

Optional - limit which models can be used by adding in settings.py

REPORT_BUILDER_INCLUDE = []

REPORT_BUILDER_EXCLUDE = ['user'] # Allow all models except User to be accessed

Usage

Go to the admin site (/admin/report_builder) and create a report. You can use the "easy edit" button after saving to get the screen in the screenshot. Select related fields in the top left section. Drag actual fields in the bottom left section into either the filter or display tabs. Preview the report and when satified generate an xlsx file for the full report.

About

A GUI for Django ORM. Build custom queries and display results. Targets sys admins and capable end users who might not be able to program.

License:Other