-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Implement Slick reporting media override feature + docs
- Add `Integrating reports into your Admin site` section to the docs
- Loading branch information
1 parent
e11f1ff
commit 93fd357
Showing
6 changed files
with
104 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,26 @@ Below are the default settings for django-slick-reporting. You can override them | |
datetime.now().year, 1, 1, 0, 0, 0, tzinfo=timezone.utc | ||
), # Default: 1st Jan of current year | ||
"DEFAULT_END_DATE_TIME": datetime.datetime.today(), # Default to today | ||
"DEFAULT_CHARTS_ENGINE": SLICK_REPORTING_DEFAULT_CHARTS_ENGINE, | ||
"MEDIA": { | ||
"override": False, # set it to True to override the media files, | ||
# False will append the media files to the existing ones. | ||
"js": ( | ||
"https://cdn.jsdelivr.net/momentjs/latest/moment.min.js", | ||
"https://cdn.jsdelivr.net/npm/[email protected]/dist/js/select2.min.js", | ||
"https://cdn.datatables.net/1.13.4/js/jquery.dataTables.min.js", | ||
"https://cdn.datatables.net/1.13.4/js/dataTables.bootstrap5.min.js", | ||
"slick_reporting/slick_reporting.js", | ||
"slick_reporting/slick_reporting.report_loader.js", | ||
"slick_reporting/slick_reporting.datatable.js", | ||
), | ||
"css": { | ||
"all": ( | ||
"https://cdn.jsdelivr.net/npm/[email protected]/dist/css/select2.min.css", | ||
"https://cdn.datatables.net/1.13.4/css/dataTables.bootstrap5.min.css", | ||
) | ||
}, | ||
}, | ||
"FONT_AWESOME": { | ||
"CSS_URL": "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css", | ||
"ICONS": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
.. _structure: | ||
|
||
================ | ||
Rows and columns | ||
================ | ||
|
||
It's natural to think of a report as a form of tabular data, with rows and columns. | ||
|
||
We willexplore the ways one can create the rows and column of a report. | ||
|
||
a simple example |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters