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
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
File details
Details for the file canned-views-0.1.4.tar.gz
.
File metadata
- Download URL: canned-views-0.1.4.tar.gz
- Upload date:
- Size: 33.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 24095528ab734670b5c908010266612ccb33b93a19113a89fffa124273edc501 |
|
MD5 | 367e07889c20c3b436a084d6d9bee31b |
|
BLAKE2b-256 | 4ee48d7f074b9b25ae87b74b51edbfa5f078fc34fb38731596c28f1596cced0d |
File details
Details for the file canned_views-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: canned_views-0.1.4-py3-none-any.whl
- Upload date:
- Size: 41.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2fcad4c741d9575fb775aff2a73179bc5ea33db6152ec0135162eb2bb227970c |
|
MD5 | 1ddae4b39438391f44d6cc2fce5cc396 |
|
BLAKE2b-256 | 1ec2ee881516a77a2c359f53928d81d7a57242b79a88489741d120c847fabea3 |