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.7.tar.gz
.
File metadata
- Download URL: canned-views-0.1.7.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 442390bb85d5d0eb4f3df9971824e95db92bbdca9f00512895a71d69dd8566f1 |
|
MD5 | 61c16efab8cd1748700204796c509185 |
|
BLAKE2b-256 | 3452105a580ae806c42ae8b8db52292b505362ffc3649e086b6e50864f54b2d6 |
File details
Details for the file canned_views-0.1.7-py3-none-any.whl
.
File metadata
- Download URL: canned_views-0.1.7-py3-none-any.whl
- Upload date:
- Size: 41.6 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 | 9ed0174ac548732983a6d53f14a4e6c549e0020111d4d3aedf59287324ad76d4 |
|
MD5 | fe2210637fbb6ef127be84b97ecc910d |
|
BLAKE2b-256 | 2225d132739412e49ba34f5804a7b3354e44e75e521e2e83299de624658daac7 |