0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-30 19:20:56 +01:00
Commit Graph

3838 Commits

Author SHA1 Message Date
Thibaud Colas
cd8c19d762 Rename tutorial blog index page to reduce the likelihood of slug issues (#12576) 2024-11-15 16:24:52 +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
Sage Abdullah
5eca192bd2
Release note for #12564 2024-11-13 16:30:50 +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
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
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
ayaan-qadri
b0c90d4be2 Removed preventDefault from openPreviewInNewTab in PreviewController
Relates to #10356
2024-11-06 07:47:10 +10:00
LB
825a77d6c2 Remove all eslint-disable no-undef & use global comments (#12527)
Recommendation is to either declare globals in config or in a `/* global ` comment
See https://eslint.org/docs/latest/rules/no-undef#rule-details
2024-11-05 20:11:09 +00:00
LB
cae3229716 Remove unnecessary DOM Range polyfill (#12496)
- Remove DOM Range polyfill provided by https://developer.mozilla.org/en-US/docs/Web/API/Range
- All Wagtail supported browsers, as of a few years ago, have built in support for `document.createRange`, see https://developer.mozilla.org/en-US/docs/Web/API/Range
2024-11-05 20:01:31 +00:00
Matt Westcott
3013673c55 Release notes for #12480 2024-11-05 19:48:24 +00:00
Sage Abdullah
f21f6dd884
Release note for #12525 2024-11-05 12:56:59 +00:00
Sage Abdullah
da3e0ade37
Use intersphinx to link to MyST-Parser docs 2024-11-05 10:44:41 +00:00
Sage Abdullah
9a5be8f180
Replace more hardcoded Django links with intersphinx in rST docs
Some link labels are changed to just the code part, because using Sphinx
roles for code objects (e.g. methods, attributes) would always format the
text as inline code.

It's currently impossible to customize the formatting of a link's text in
rST. See https://stackoverflow.com/questions/4743845
2024-11-05 10:44:39 +00:00
Sage Abdullah
857b26e5a0
Replace hardcoded Django docs links to intersphinx links 2024-11-05 10:44:39 +00:00
Jake Howard
71c93cb39c Remove non-unsert support for Postgres indexing (#12509)
PostgreSQL 9.4 support was dropped with the release of Django 3.0.
2024-11-04 18:19:29 +00:00
rahulsamant37
5e4c3f12c3 Remove defunct oEmbed providers (#12537)
Fixes #12054
2024-11-04 18:04:33 +00:00
Matt Westcott
0cab6641cc Release note for #12539 2024-11-04 15:40:44 +00:00
LB
21206dc3e7 Clean up JS comments to be aligned to JSDoc where suitable 2024-11-04 21:14:04 +10:00
LB
6f34d3c299 Add changelog for #12503
Fixes #12498
2024-11-02 10:29:19 +10:00
manu
b2cd95bf3b Fix sidebar page explorer transitions - avoid overflow 2024-11-02 09:59:21 +10:00
LB
114998fa21 Fix changelog for #12495 add changelog for #12510 2024-11-02 09:04:55 +10:00
LB
940ac10a9c Remove unused uuid module 2024-11-02 09:02:09 +10:00
Matt Westcott
793539d208 Fill in release date for 6.3 final 2024-11-01 13:21:07 +00:00
Matt Westcott
f110ddd934 Fill in release date for 6.2.3 2024-11-01 13:20:09 +00:00
Matt Westcott
e8ca33b023 Fill in release date for 5.2.7 2024-11-01 13:20:08 +00:00
Matt Westcott
a8e243d36b Release note for #12521 in 6.2.3 2024-11-01 13:14:05 +00:00
Matt Westcott
e931a40451 Release note for #12427 in 6.2.3 2024-11-01 12:50:09 +00:00
Matt Westcott
9ef8c834d2 Release note for #12367 in 6.2.3 2024-11-01 12:33:45 +00:00
Matt Westcott
0313522d38 Release note for #12367 in 5.2.7 2024-11-01 12:33:35 +00:00
Bojan Mihelac
cc1805dc86
Fix sub-menus within the main menu cannot be closed on mobile (#10747) 2024-11-01 12:10:53 +00:00
Ayaan
0913118da4
Replaced Twitter references in the docs with more appropriate alternatives (#12516). Fix #12483
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2024-11-01 11:03:54 +00:00
Thibaud Colas
b1fc61a5a2 Add release notes for ##12521 2024-11-01 10:01:01 +00:00
Matt Westcott
593b95cad9
Document the ability to migrate from ImageChooserBlock to ImageBlock (#12518) 2024-11-01 09:58:42 +00:00
LB
b903b572d9 Update changelog for 6.3 cherry-pick #12490 #12506 #12507
Offline formats cherry-picked to 6.3 release
2024-10-31 08:12:48 +10:00
LB
9b4999ed9d Add changelog for #12507
Fixes #12484
2024-10-31 07:52:49 +10:00
Joel William
7b2b44b541 Documentation - Configure RTD to build all offline formats
- https://docs.readthedocs.io/en/stable/config-file/v2.html#formats

Fixes #12484
2024-10-30 18:26:31 +10:00
Jake Howard
f08a947f8e Bypass ALLOWED_HOSTS checks when resolving Site for request (#12129) 2024-10-29 19:41:23 +00:00
Srishti-j18
fd9b1ca22b Docs - Update spelling to US customize variants
Fixes #12476
2024-10-29 18:47:43 +10:00
Storm B. Heg
d404d37ba5 Extend Pillow version range to allow v11 (#12475) 2024-10-28 18:23:31 +00:00
LB
a562d4db6a Docs - Align spelling of 'subpages' to be consistent with rest of docs 2024-10-28 08:34:59 +10:00
Srishti-j18
652de3fcb3 Documentation - Improve code highlighting & formatting for Python docstrings in core models 2024-10-28 08:34:38 +10:00
Matt Westcott
37d9d7eb06 Increase DATA_UPLOAD_MAX_NUMBER_FIELDS in project template & docs
Also recommend increasing this in the "Integrating into Django" docs.

Fixes #12452

- Don't use commas for thousand separator
- Co-authored-by: Jake Howard <RealOrangeOne@users.noreply.github.com>
2024-10-28 08:27:29 +10:00
Andy Babic
e451bbd96a Support application of select_related and prefetch_related lookups to subqueries made by SpecificIterable
- Add queryset methods to reference docs, and provide performance considerations for prefetch_related()
2024-10-28 08:06:03 +10:00