0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-21 09:59:02 +01:00
Commit Graph

18189 Commits

Author SHA1 Message Date
LB
57f7abda43 Add a changelog entry for #12569
Fixes #12563
2024-11-20 16:31:49 +10:00
ayaan-qadri
87f22bebf0 Remove unused jQuery add-multiple / core.js
- Class changes & event handling is now located within the HTML / ZoneController Stimulus usage
2024-11-20 16:31:49 +10:00
ayaan-qadri
cc342bbd1c Adopt ZoneController (w-zone) in images/documents add views 2024-11-20 16:31:49 +10:00
ayaan-qadri
31ccda4501 Create new Stimulus ZoneController (w-zone) 2024-11-20 16:31:49 +10:00
LB Johnston
b9575f3498 ModalWorkflow - Add JSDoc description & adopt linting recommendations 2024-11-20 12:46:40 +10:00
Andy Babic
66f1e817eb
Allow page types to easily restrict what type of requests they respond to (#12473)
* Allow page types to specify the request methods they support and block unsupported requests in serve()
* Use 'before_serve_page' hook to serve OPTIONS responses
* Add checks to RoutablePageMixin.serve() where the parent implementation is bypassed
* Rename check_http_method to check_request_method and actually use the return value
* Support Python 3.9 through to current approaches for `http` method strings
* Include documentation, docstrings & changelog entry
2024-11-20 10:15:36 +10:00
LB
3697ee1f2a Eslint - fix location of storybook folder & remove eslint ignore 2024-11-20 07:52:43 +10:00
LB
acd2c535f6 Remove canvas-to-blob polyfill
Historic recommendation for jQuery image upload before all browsers supported `canvas.toBlob`.

All modern browsers supported by Wagtail have had support for this for many years now.

- See https://caniuse.com/?search=toblob
- See https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toBlob
2024-11-20 07:46:40 +10:00
Matt Westcott
5be9bd12d3 Update latest.txt for 6.3.1 2024-11-19 17:00:25 +00:00
Matt Westcott
3697501426 Fill in release date for 6.3.1 2024-11-19 15:56:45 +00:00
Matt Westcott
73445ef175 Fetch new translations from Transifex 2024-11-19 15:56:20 +00:00
Matt Westcott
2d2fb11bf8 Fetch translations from Transifex 2024-11-19 15:56:11 +00:00
Sage Abdullah
ae1dab03ab Lower docs search ranking for release notes (#12586)
Except for the 'upgrading' section, as it's still generally useful
2024-11-19 15:24:22 +00:00
Matt Westcott
f833a2f520 Remove forced capitalization of site name on admin dashboard (#12601)
Fixes #12592
2024-11-19 15:14:04 +00:00
helloshiv
f0d3edfad6
Fix wagtailcache and wagtailpagecache examples to not use quotes for the fragment_name 2024-11-19 14:18:17 +00:00
Sage Abdullah
f741f9f333
Release note for #12576 in 6.3.1 2024-11-19 14:16:50 +00:00
Sage Abdullah
b1251d8279
Release note for #12573, #12587, #12590, #12591 in 6.3.1 2024-11-19 14:13:29 +00:00
Sage Abdullah
a5761bc2a9 Improve spacing of page permissions table in Group settings (#12585) 2024-11-18 16:45:54 +00:00
Matt Westcott
d2b9bd224d Release note for #12571 in 6.3.1 2024-11-18 15:51:08 +00:00
Matt Westcott
58f849a294 Handle None in ImageBlock.to_python 2024-11-18 15:47:09 +00:00
Matt Westcott
0dd9b7dcb1 Switch cases in ImageBlock.bulk_to_python so that the ImageChooserBlock logic is the special case rather than the default 2024-11-18 15:47:09 +00:00
Storm B. Heg
17378e06c8 Refactor ImageBlock.bulk_to_python to handle more cases of bad data
Specifically, cases where an ImageChooserBlock to ImageBlock migration
results in `[None]` as a value.

ref: https://github.com/wagtail/wagtail/issues/12514
2024-11-18 15:47:09 +00:00
Clifford Gama
f4d3c80e2f Fix typo: remove reference to PublishingPanel as a method 2024-11-18 12:49:15 +00:00
Clifford Gama
ed084ae3bd Fix misleading wording - clarify that get_site_root is created, not used 2024-11-18 12:48:39 +00:00
Clifford Gama
791f031e16 Fix minor typo - capitalize Page model 2024-11-18 12:40:12 +00:00
Thibaud Colas
cd8c19d762 Rename tutorial blog index page to reduce the likelihood of slug issues (#12576) 2024-11-15 16:24:52 +00:00
Matt Westcott
1af469cbd6 Update Emily's name in contributors list 2024-11-15 16:22:39 +00:00
Clifford Gama
9509d6409f Clarify get_context() usage in BlogTagIndexPage example (#12573) 2024-11-15 16:21:10 +00:00
Matt Westcott
e7dd00e427 Ensure that creation of image/document choose permissions happens after access_admin permission exists
As per https://github.com/wagtail/wagtail/issues/12581#issuecomment-2478983521.
Fixes #12581
2024-11-15 16:18:20 +00:00
Steve Stein
220a621a88 Add Steve to CONTRIBUTORS.md
docs(contributors): Add Steven to contributors list
2024-11-15 09:51:58 +00:00
Sage Abdullah
5eca192bd2
Release note for #12564 2024-11-13 16:30:50 +00:00
Sage Abdullah
d36cb87299
Use values_list() to optimise tag autocomplete view 2024-11-13 16:30:50 +00:00
Aayushman Singh
ce0601b77c
Limit autocomplete results view to 10
Prevent performance issues when there are many tags available.
2024-11-13 16:12:57 +00:00
Matt Westcott
5212061485
Normalize StreamField.get_default to prevent creation forms from breaking
Fixes #12561

When a ModelForm is constructed without passing an `initial` instance, the result of `StreamField.get_default()` will become the default value of the form field without the intermediate step of being set on a model instance and read back (which would have the side effect of calling `normalize()`). Form rendering only works with normalized values (e.g. StreamValue rather than list-of-tuples for a StreamBlock), so the return value from `get_default()` needs to be normalized.
2024-11-13 15:46:07 +00:00
Sage Abdullah
210f35f7ec
Release note for #12556 2024-11-13 14:20:10 +00:00
Matt Westcott
7a923de427
Set sensible defaults for InlinePanel heading and label 2024-11-13 14:18:49 +00:00
Matt Westcott
253c401ae2
Pass InlinePanel heading rather than label to use as the label for comparisons
Conventionally `label` is singular (used on individual forms as "Speaker 1", "Speaker 2" etc as well as the "Add speaker" button), while `heading` is plural ("Speakers" or "Speaker lineup", used as the main heading for the list). The plural is most appropriate for the comparison view.

Also fix the test for MultipleChooserPanel, which was copied across from the InlinePanel test without actually setting a label/heading on the panel.
2024-11-13 14:18:49 +00:00
Matt Westcott
aa31d329ab
Stop invalid Site hostname records from breaking preview
As made famous by https://youtu.be/v3KEaMTfKg0?t=319 :-)

By design, Wagtail tolerates the default Site record being left at its default value of 'localhost' up to a certain point. Ideally, that point should be when it becomes strictly necessary for Wagtail to care about hostnames (such as when setting up the second site of a multi-site installation) and it should be clear to the developer what has happened and how to fix it.

In practice, that point often comes when the developer deploys their site to production, sets `DEBUG=False`, and is then required by Django to set `ALLOWED_HOSTS` to their real domain name. At this point, front-end page requests work (because the initial site record is default=True, matching any domain including the live one) but previews are broken (because the dummy request object is still formed using localhost as per the site's hostname field, which is disallowed by ALLOWED_HOSTS).

This is unnecessary, and can be avoided by validating the hostname against ALLOWED_HOSTS and substituting one that _is_ allowed if necessary, as we already do for pages that don't have an associated site record.
2024-11-13 13:57:14 +00:00
Sage Abdullah
6315d3c1cc
Release note for #12551 2024-11-12 10:59:57 +00:00
Sage Abdullah
92714d87e7
Minor tweaks per code review 2024-11-12 10:58:04 +00:00
Sage Abdullah
533481b0f4
Add note about extending section not subject to deprecation policy 2024-11-08 20:09:39 +00:00
Sage Abdullah
991d9bcab5
Update release process documentation 2024-11-08 20:09:39 +00:00
Sage Abdullah
f43cf941d5
Improve upgrade guide to reflect current versioning scheme and highlight important steps 2024-11-08 20:09:39 +00:00
Sage Abdullah
246f3c7eb5 Fix profile picture upload not working in account settings (#12548)
Fixes #12547
2024-11-07 13:03:20 +00:00
Matt Westcott
122b9683fa Add 6.3.1 release notes 2024-11-07 13:03:13 +00:00
Matt Westcott
e7e57cd29e Release note for #12488 2024-11-05 22:36:43 +00:00
Jake Howard
98a141cbc3 Assert query counts for page publishing 2024-11-05 22:35:35 +00:00
Jake Howard
f68dd505d0 Don't fetch all related instances when creating revision object 2024-11-05 22:35:35 +00:00
Jake Howard
aa1a848bf2 Don't fetch entire live revision 2024-11-05 22:35:35 +00:00
Jake Howard
9efdadb68a Only update changed field 2024-11-05 22:35:35 +00:00