Rename admin/expanding-formset.js (using kebab-case file) (#7833)

pull/7846/head
LB (Ben Johnston) 2022-01-15 11:00:02 +10:00 zatwierdzone przez GitHub
rodzic a7aabf76ac
commit 1deed5f5af
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
7 zmienionych plików z 9 dodań i 4 usunięć

Wyświetl plik

@ -26,6 +26,7 @@ Changelog
* Change release check domain to releases.wagtail.org (Jake Howard)
* Add the user who submitted a page for moderation to the "Awaiting your review" homepage summary panel (Tidiane Dia)
* When moving pages, default to the current parent section (Tidjani Dia)
* `admin/expanding_formset.js` has been renamed to `admin/expanding-formset.js` (LB (Ben Johnston))
* Fix: Accessibility fixes for Windows high contrast mode; Dashboard icons colour and contrast (Sakshi Uppoor)
* Fix: Rename additional 'spin' CSS animations to avoid clashes with other libraries (Kevin Gutiérrez)
* Fix: `default_app_config` deprecations for Django >= 3.2 (Tibor Leupold)

Wyświetl plik

@ -2,7 +2,7 @@
import $ from 'jquery';
window.$ = $;
import './expanding_formset';
import './expanding-formset';
describe('buildExpandingFormset', () => {
it('exposes module as global', () => {

Wyświetl plik

@ -33,7 +33,7 @@ module.exports = function exports() {
'core',
'date-time-chooser',
'draftail',
'expanding_formset',
'expanding-formset',
'filtered-select',
'hallo-bootstrap',
'hallo-plugins/hallo-hr',

Wyświetl plik

@ -74,3 +74,7 @@ This release upgrades the [django-taggit](https://django-taggit.readthedocs.io/e
### `wagtail.admin.views.generic.DeleteView` follows Django 4.0 conventions
The internal (undocumented) class-based view `wagtail.admin.views.generic.DeleteView` has been updated to align with [Django 4.0's `DeleteView` implementation](https://docs.djangoproject.com/en/4.0/releases/4.0/#deleteview-changes), which uses `FormMixin` to handle POST requests. Any custom deletion logic in `delete()` handlers should be moved to `form_valid()`.
### Renamed admin/expanding-formset.js
`admin/expanding_formset.js` has been renamed to `admin/expanding-formset.js` as part of frontend code clean up work. Check for any customised admin views that are extending expanding formsets, or have overridden template and copied the previous file name used in an import as these may need updating.

Wyświetl plik

@ -20,7 +20,7 @@
<script src="{% versioned_static 'wagtailadmin/js/comments.js' %}"></script>
<script src="{% versioned_static 'wagtailadmin/js/vendor/rangy-core.js' %}"></script>
<script src="{% versioned_static 'wagtailadmin/js/vendor/mousetrap.min.js' %}"></script>
<script src="{% versioned_static 'wagtailadmin/js/expanding_formset.js' %}"></script>
<script src="{% versioned_static 'wagtailadmin/js/expanding-formset.js' %}"></script>
<script src="{% versioned_static 'wagtailadmin/js/modal-workflow.js' %}"></script>
<script src="{% versioned_static 'wagtailadmin/js/page-editor.js' %}"></script>
<script src="{% versioned_static 'wagtailadmin/js/vendor/xregexp.min.js' %}"></script>

Wyświetl plik

@ -1,5 +1,5 @@
{% load wagtailadmin_tags %}
<script src="{% versioned_static 'wagtailadmin/js/expanding_formset.js' %}"></script>
<script src="{% versioned_static 'wagtailadmin/js/expanding-formset.js' %}"></script>
<script src="{% versioned_static 'wagtailadmin/js/modal-workflow.js' %}"></script>
<script src="{% versioned_static 'wagtailusers/js/group-form.js' %}"></script>