diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 5394a42aa..26524d117 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -18,6 +18,7 @@ Changelog * Fix: Prevent error when comparing pages that reference a model with a custom primary key (Fidel Ramos) * Fix: Moved ``get_document_model`` location so it can be imported when Models are not yet loaded (Andrey Smirnov) * Fix: Fixed incorrect HTML escaping of Jinja2 form templates for StructBlocks (Brady Moe) + * Fix: All templates with wagtailsettings and modeladmin now use ``block.super`` for ``extra_js`` & ``extra_css`` (Timothy Bautista) 2.7 LTS (06.11.2019) ~~~~~~~~~~~~~~~~~~~~ diff --git a/CONTRIBUTORS.rst b/CONTRIBUTORS.rst index 8538c9c1d..8ea688adf 100644 --- a/CONTRIBUTORS.rst +++ b/CONTRIBUTORS.rst @@ -423,6 +423,7 @@ Contributors * Tom Readings * Andrey Smirnov * Tim Gates +* Timothy Bautista Translators =========== diff --git a/docs/releases/2.8.rst b/docs/releases/2.8.rst index 528c235f8..c8eaa14af 100644 --- a/docs/releases/2.8.rst +++ b/docs/releases/2.8.rst @@ -32,6 +32,7 @@ Bug fixes * Prevent error when comparing pages that reference a model with a custom primary key (Fidel Ramos) * Moved ``get_document_model`` location so it can be imported when Models are not yet loaded (Andrey Smirnov) * Fixed incorrect HTML escaping of Jinja2 form templates for StructBlocks (Brady Moe) + * All templates with wagtailsettings and modeladmin now use ``block.super`` for ``extra_js`` & ``extra_css`` (Timothy Bautista) Upgrade considerations diff --git a/wagtail/contrib/modeladmin/templates/modeladmin/choose_parent.html b/wagtail/contrib/modeladmin/templates/modeladmin/choose_parent.html index 21468ecba..4d19078ec 100644 --- a/wagtail/contrib/modeladmin/templates/modeladmin/choose_parent.html +++ b/wagtail/contrib/modeladmin/templates/modeladmin/choose_parent.html @@ -4,6 +4,7 @@ {% block titletag %}{{ view.get_meta_title }}{% endblock %} {% block extra_css %} + {{ block.super }} {% include "wagtailadmin/pages/_editor_css.html" %} {{ form.media.css }} @@ -11,6 +12,7 @@ {% endblock %} {% block extra_js %} + {{ block.super }} {% include "wagtailadmin/pages/_editor_js.html" %} {{ form.media.js }} {% endblock %} diff --git a/wagtail/contrib/modeladmin/templates/modeladmin/create.html b/wagtail/contrib/modeladmin/templates/modeladmin/create.html index ab8421edc..325a249df 100644 --- a/wagtail/contrib/modeladmin/templates/modeladmin/create.html +++ b/wagtail/contrib/modeladmin/templates/modeladmin/create.html @@ -4,6 +4,8 @@ {% block titletag %}{{ view.get_meta_title }}{% endblock %} {% block extra_css %} + {{ block.super }} + {% include "wagtailadmin/pages/_editor_css.html" %} {{ edit_handler.form.media.css }} @@ -11,6 +13,8 @@ {% endblock %} {% block extra_js %} + {{ block.super }} + {% include "wagtailadmin/pages/_editor_js.html" %} {{ edit_handler.form.media.js }} {{ edit_handler.html_declarations }} diff --git a/wagtail/contrib/modeladmin/templates/modeladmin/index.html b/wagtail/contrib/modeladmin/templates/modeladmin/index.html index c13288143..3f7006a00 100644 --- a/wagtail/contrib/modeladmin/templates/modeladmin/index.html +++ b/wagtail/contrib/modeladmin/templates/modeladmin/index.html @@ -9,6 +9,7 @@ {% endblock %} {% block extra_js %} + {{ block.super }} {{ view.media.js }} {% endblock %} diff --git a/wagtail/contrib/modeladmin/templates/modeladmin/inspect.html b/wagtail/contrib/modeladmin/templates/modeladmin/inspect.html index fb33ad9cb..41ecd5e6f 100644 --- a/wagtail/contrib/modeladmin/templates/modeladmin/inspect.html +++ b/wagtail/contrib/modeladmin/templates/modeladmin/inspect.html @@ -4,11 +4,13 @@ {% block titletag %}{{ view.get_meta_title }}{% endblock %} {% block extra_css %} + {{ block.super }} {{ view.media.css }} {% endblock %} {% block extra_js %} + {{ block.super }} {{ view.media.js }} {% endblock %} diff --git a/wagtail/contrib/settings/templates/wagtailsettings/edit.html b/wagtail/contrib/settings/templates/wagtailsettings/edit.html index f7476a8a9..6cd67466e 100644 --- a/wagtail/contrib/settings/templates/wagtailsettings/edit.html +++ b/wagtail/contrib/settings/templates/wagtailsettings/edit.html @@ -42,11 +42,13 @@ {% endblock %} {% block extra_css %} + {{ block.super }} {% include "wagtailadmin/pages/_editor_css.html" %} {{ edit_handler.form.media.css }} {{ site_switcher.media.css }} {% endblock %} {% block extra_js %} + {{ block.super }} {% include "wagtailadmin/pages/_editor_js.html" %} {{ edit_handler.form.media.js }} {{ edit_handler.html_declarations }}