Skip to main content

SQL views presented as simple Django ListView reports

Project description

Views, as in SQL views.

SQL views presented as simple Django ListView reports rendered by DataTables.

Overview

The online report renders from the results of an SQL VIEW using DataTables.

  • Each report is defined in the model CannedViews;

  • The SQL VIEW must exist in the DB and the name must be prefixed with canned_;

  • The rendered report is limited to 500 records for now. If the query returns more than 500 records, the report will only render the first 500 in the order of the query;

  • You can specify one column to render as a hyperlink. In almost all cases this will be the subject_identifier column.

Rendering one column as a url

To reverse a url, include the columns by name separated by commas in the reverse_url_args column. It is up to you to ensure that the reverse_url_name is valid and in the global dictionary `url_names`.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

canned-views-0.1.5.tar.gz (33.6 kB view details)

Uploaded Source

Built Distribution

canned_views-0.1.5-py3-none-any.whl (41.6 kB view details)

Uploaded Python 3

File details

Details for the file canned-views-0.1.5.tar.gz.

File metadata

  • Download URL: canned-views-0.1.5.tar.gz
  • Upload date:
  • Size: 33.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.9

File hashes

Hashes for canned-views-0.1.5.tar.gz
Algorithm Hash digest
SHA256 32fb1e5717f24ccc096464c795e06ee68cf748e459c5714b7569d1374601b8b6
MD5 ba778ae69a9938b3556642550a22e73b
BLAKE2b-256 e5b3fb00c22efef6f52c2b329cf593d228cf1bdfea1734cc032b4d07c01b5181

See more details on using hashes here.

File details

Details for the file canned_views-0.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for canned_views-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 02088408d1d9310680224054573b7cd9d719c9729dc97faa587e2d7dc9a49204
MD5 83aab3dddf006c3f3b9166e2551f5736
BLAKE2b-256 004da7ff212562edf845a3585746c63a15a04809c56fb5fc2ce3dd25620fe0c1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page