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

17535 Commits

Author SHA1 Message Date
Sage Abdullah
2fc7b4d5c9
Do not register 'view' permission if inspect view is not enabled 2024-07-02 10:21:03 +01:00
Sage Abdullah
b3e87bcee8
Register permissions for models registered with ModelViewSet 2024-07-02 09:30:57 +01:00
Matt Westcott
79a22efff8 Release note for #11985 2024-07-01 23:57:34 +01:00
Jake Howard
4e3c42011c Cache embed finders and finder match
This intentionally doesn't interfere with the existing caching of the embed HTML
2024-07-01 23:56:44 +01:00
Jake Howard
7330df391d Reduce duplication for facebook/instagram embeds
The constructors were mostly duplicated, so reuse the oembed finder, since they're still oembed
2024-07-01 23:56:44 +01:00
Jake Howard
15511411bd Allow manually specifying credentials for CloudFront frontend cache backend (#10565) 2024-07-01 19:02:12 +01:00
Alex Morega
d0647f3288
Add a deactivate() method to ProgressController 2024-06-28 11:59:43 +01:00
Matt Westcott
6dbae8ca2c Implement for_instance on PageLogEntryManager (#12093)
`BaseLogEntryManager` leaves this unimplemented, and `ModelLogEntryManager` implements it but `PageLogEntryManager` doesn't. The `LogActionRegistry.get_logs_for_instance` method calls this, which means it fails on page models.

Currently this is only used on generic views, which aren't used by page models (unless they're also registered as a snippet, which isn't really a supported setup) but LogActionRegistry is supposed to work transparently across log models, so this is clearly a bug.
2024-06-27 17:00:40 +01:00
Albina
03f26187b6
Add alt text validation rule in the accessibility checker (#11986)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2024-06-27 09:33:46 +01:00
Albina
c632832edf
Language label redesign - admin listings (#12010)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2024-06-26 11:18:59 +01:00
Matt Westcott
ecefcb680f Release note for #12075 2024-06-25 18:02:14 +01:00
Sage Abdullah
e1b77ccd6f Add docs about not converting relative links when there are multiple sites 2024-06-25 17:59:37 +01:00
Sage Abdullah
5d209edf82 Optimise queries when converting external link with a custom serve path
Before the converter was fixed, the possible_sites list contains tuples
of (site_pk, url_to_match) where the site_pk is unique for the whole
list.

With the initial version of the fix, the pk may appear twice as we have
two url_to_match: with and without the wagtail_serve path. As a result,
we would fetch the Site object twice when matching URLs that include the
serve path.

This commit optimizes the fix by using a dictionary using the key as the
site_pk that maps to a list of urls to match, so we can fetch each site
exactly once, to then be used for matching the urls.
2024-06-25 17:59:37 +01:00
Sage Abdullah
6faae89fdc Add test for number of queries when converting an external link with a custom serve path 2024-06-25 17:59:37 +01:00
Sage Abdullah
939e045d3c Fix external-to-internal link converter detection when using non-root path for wagtail_serve view 2024-06-25 17:59:37 +01:00
Sage Abdullah
43bb39f9ee Add tests for external-to-internal link converter when i18n is enabled and/or the wagtail_serve path is registered at a non-root path 2024-06-25 17:59:37 +01:00
Sage Abdullah
fb3a6b1b31 Add tests for external-to-internal link converter when wagtail_serve URL is not registered 2024-06-25 17:59:37 +01:00
Matt Westcott
a7af760aa7 Add release notes for 5.2.6 2024-06-25 13:10:19 +01:00
Alex Tomkins
5fe8da9921
Fix image preview when Willow optimizers are enabled (#12047)
Avoids https://github.com/wagtail/Willow/issues/147
2024-06-25 10:19:25 +01:00
Jochen Wersdörfer
77791767a2 make sure there are no null bytes in input data from query strings (#12072)
Fixes #12052
2024-06-24 18:53:23 +01:00
ad95e0a991 Add verbose name to locale field of TranslatableMixin (#12071)
fixes #12068
2024-06-24 18:48:45 +01:00
Matt Westcott
ead391ea14 Release note for #12059 2024-06-24 16:52:55 +01:00
Matt Westcott
0594a12630 Use double backticks in StreamField.__init__ docstring
Co-authored-by: sag​e <laymonage@gmail.com>
2024-06-24 16:51:16 +01:00
Matt Westcott
4bf6afd0eb Update docstring on Block.__eq__
The speculation that it might be useful for this feature turned out to be false...
2024-06-24 16:51:16 +01:00
Matt Westcott
935a579426 Use a dict as the in-code representation of the lookup table
This makes it more human-readable.
2024-06-24 16:51:16 +01:00
Matt Westcott
1d6c1c7f2e Deconstruct StreamField using block lookup table
Fixes #4298
2024-06-24 16:51:16 +01:00
Matt Westcott
38fcf19168 Support constructing StreamField with a block_lookup argument 2024-06-24 16:51:16 +01:00
Matt Westcott
478c3cc2dc Implement construct_from_lookup for TypedTableBlock 2024-06-24 16:51:16 +01:00
Matt Westcott
53ef44b177 Implement construct_from_lookup for ListBlock 2024-06-24 16:51:16 +01:00
Matt Westcott
18d9bc8422 Implement construct_from_lookup for StructBlock and StreamBlock 2024-06-24 16:51:16 +01:00
Matt Westcott
b5bf60da06 Implement BlockDefinitionLookup 2024-06-24 16:51:16 +01:00
Matt Westcott
91174228d0 Move logic for finding canonical module path in deconstruct into a cached property
This ensures that we don't have to repeatedly call import_module on repeated calls to deconstruct (e.g. within __eq__)
2024-06-24 16:51:16 +01:00
Matt Westcott
f21945c298 Make StreamField.stream_block into a cached property 2024-06-24 16:51:16 +01:00
dependabot[bot]
54e108744b Bump braces from 3.0.2 to 3.0.3 in /client/tests/integration
Bumps [braces](https://github.com/micromatch/braces) from 3.0.2 to 3.0.3.
- [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/braces/compare/3.0.2...3.0.3)

---
updated-dependencies:
- dependency-name: braces
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-21 00:10:16 +01:00
Jake Howard
d1a0f4cd29 Replace urlparse with urlsplit. (#12028)
`urlsplit` is approximately 6x faster.
2024-06-21 00:08:56 +01:00
dependabot[bot]
4c450e2251 Bump ws from 7.5.7 to 7.5.10 in /client/tests/integration
Bumps [ws](https://github.com/websockets/ws) from 7.5.7 to 7.5.10.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/7.5.7...7.5.10)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-20 23:52:48 +01:00
dependabot[bot]
6aaa920d9f Bump braces from 3.0.2 to 3.0.3
Bumps [braces](https://github.com/micromatch/braces) from 3.0.2 to 3.0.3.
- [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/braces/compare/3.0.2...3.0.3)

---
updated-dependencies:
- dependency-name: braces
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-20 23:52:05 +01:00
Matt Westcott
d4391f4e72 Release note for #12063 2024-06-20 19:30:44 +01:00
Kyle Bayliss
ae3d315364 Add fullstops to error messages (like Django) and remove unnecessary span elements. 2024-06-18 16:23:48 +01:00
Kyle Bayliss
4d1de045e4 Join error messages with a space, similar to how Django does things. 2024-06-18 16:23:12 +01:00
Albina
4e2afc966b
Content checks results redesign (#12019) 2024-06-17 16:25:36 +01:00
Jeroen de Vries
add3c7dc01
Update deployment instructions for Fly.io 2024-06-17 12:29:51 +01:00
Inju Michorius
ac38343957
Remove opacity property from unpublished page titles (#12043) 2024-06-13 15:24:46 +02:00
Sævar Öfjörð Magnússon
435293d9d7 Extend the until date of the promotion banner for Wagtail Space 2024-06-13 15:16:29 +02:00
Sævar Öfjörð Magnússon
d44808ac53 Update the date for Wagtail Space US 2024-06-13 15:07:19 +02:00
Roel Koper
366a7b7e6f
Add prefers-reduced-motion to accessibility docs (#12038) 2024-06-13 14:46:52 +02:00
Sævar Öfjörð Magnússon
49ef72725a Add test for flatten_choices and support dictionaries 2024-06-13 13:05:12 +02:00
SebCorbin
a28ab1152c Handle choice groups in active filters 2024-06-13 13:00:06 +02:00
Bojan Mihelac
5a1ba5abe2 Documentation: Inline models optional Orderable, tests (#12034)
Fixes #11887
2024-06-13 11:55:06 +02:00
Sævar Öfjörð Magnússon
b7ab0496f1 Remove undocumented autobuild.sh script (#12035) 2024-06-12 15:44:11 +02:00