Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/erikvw/canned-views
https://github.com/erikvw/canned-views
Last synced: 8 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/erikvw/canned-views
- Owner: erikvw
- License: gpl-3.0
- Created: 2022-06-09T17:02:53.000Z (over 2 years ago)
- Default Branch: develop
- Last Pushed: 2023-08-06T22:56:38.000Z (over 1 year ago)
- Last Synced: 2024-11-27T20:17:23.188Z (25 days ago)
- Language: Python
- Size: 77.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGES
- License: LICENSE
- Authors: AUTHORS
Awesome Lists containing this project
README
Canned Views
------------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```.