Skip to content

Commit

Permalink
Update the wagtailcharts package and remove an outdated script
Browse files Browse the repository at this point in the history
The wagtailcharts 0.6.2 release notes say 0.6.1 was not released correctly: https://github.com/overcastsoftware/wagtailcharts/releases

In addition, it appears we copied in an old list of js dependencies that included a removed script, accounting.js:
https://github.com/overcastsoftware/wagtailcharts/blob/main/RELEASE_NOTES.md?plain=1#L12

This updates the package to 0.6.2 and removes our include of accounting.js
  • Loading branch information
higs4281 committed Dec 23, 2024
1 parent 9a67f10 commit e9ea7ae
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion cfgov/v1/atomic_elements/charts.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ class Meta:
# https://github.com/overcastsoftware/wagtailcharts/blob/v0.5/wagtailcharts/templates/wagtailcharts/tags/render_charts.html
class Media:
js = [
"wagtailcharts/js/accounting.js?staticroot",
"wagtailcharts/js/chart-types.js?staticroot",
"wagtailcharts/js/chart.js?staticroot",
"wagtailcharts/js/stacked-100.js?staticroot",
Expand Down
2 changes: 1 addition & 1 deletion requirements/libraries.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ wagtail-placeholder-images==0.1.1
wagtail-sharing==2.12.1
wagtail-treemodeladmin==1.9.2
wagtailmedia==0.15.2
wagtailcharts==0.6.1
wagtailcharts==0.6.2
whitenoise==6.7.0

# These packages are installed from GitHub.
Expand Down

0 comments on commit e9ea7ae

Please sign in to comment.