Matt Westcott
62f7487617
Release note for #12013
2024-06-06 17:05:15 +01:00
Sage Abdullah
20d3fe355c
Allow access to snippets model index view with only 'view' permission
2024-06-06 16:35:25 +01:00
Sage Abdullah
4b3b5e46b6
Show ModelViewSet menu item even if user only has view permission
2024-06-06 16:35:19 +01:00
Sage Abdullah
c3f770ef0e
Link to inspect view from index view if user only has view permission
...
This also allows the user to access the index view with only 'view' permission
2024-06-06 16:35:13 +01:00
Sage Abdullah
d8a9cd399e
Allow InspectView to be accessed with only the 'view' permission
2024-06-06 16:35:07 +01:00
Matt Westcott
d742b0278b
Release note for #11995
2024-06-06 16:17:36 +01:00
Sage Abdullah
2a0d05a1a8
Do not render 'more' dropdown on the listing view if there are no items
2024-06-06 16:15:14 +01:00
Sage Abdullah
0816b46a65
Perform permission checks in get_foo_url() in generic views
...
This ensures the links are never generated if the user has no permission
to access it, which prevents e.g. linking to the edit view from the
listing view, only to redirect user with an error message upon clicking.
2024-06-06 16:15:14 +01:00
Sage Abdullah
3f58e6f2d7
Move check for whether permission_policy is set to user_has{_any,}_permission methods
...
This allows us to more easily reuse the shorthand methods in subclasses
without having to check whether permission_policy is set every time
2024-06-06 16:15:14 +01:00
Sage Abdullah
06ad1d9dc1
Do not bypass permission policy check for superusers in snippets Create/Edit view ( #11966 )
...
Except for the lock/unlock permission, since we still need to sync that logic with PagePermissionTester
Fixes #11707
2024-06-06 01:09:22 +01:00
Matt Westcott
a7798c1b80
Release note for #11977
2024-06-04 22:28:01 +01:00
Andy Babic
234d928b99
Simplify type-hints
2024-06-04 22:26:37 +01:00
Andy Babic
c7caa450c8
Fix mock paths in tests
2024-06-04 22:26:37 +01:00
Andy Babic
30cb881976
Split contrib.frontend_cache.backends.py into separate dedicated sub-modules
2024-06-04 22:26:37 +01:00
Sage Abdullah
5f158de94a
Update latest.txt for 6.1.2
2024-05-30 15:28:50 +01:00
Sage Abdullah
a441f976fa
Fill in release date for 6.1.2
2024-05-30 14:58:06 +01:00
Sage Abdullah
39e8d02d20
Fill in release date for 6.0.5
2024-05-30 14:56:48 +01:00
Sage Abdullah
8b63309ced
Release note for CVE-2024-35228 in 6.1.2
2024-05-30 14:47:40 +01:00
Sage Abdullah
f8bf497741
Release note for CVE-2024-35228 in 6.0.5
2024-05-30 14:44:01 +01:00
Matt Westcott
284f75a6f9
Restore permission check on settings EditView
2024-05-30 14:32:36 +01:00
Sage Abdullah
c08cae1802
Fetch new translations from Transifex
2024-05-30 13:52:56 +01:00
sage
157a06d3fe
Support SVG icon id attributes with single quotes in the styleguide ( #11903 )
...
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2024-05-30 12:39:03 +01:00
Sage Abdullah
b2be969118
Release note for #11992
2024-05-29 19:34:03 +01:00
Matt Westcott
30fa20c1ac
Update RadioSelect adapter to handle CheckboxMultipleSelect widgets
...
This matches the inheritance pattern used on the Django side: 99f23eaabd/django/forms/widgets.py (L868)
2024-05-29 19:26:57 +01:00
Matt Westcott
53b7738df0
Update BoundSelect to support multiple select widgets
2024-05-29 19:26:57 +01:00
Matt Westcott
aafb3a04cb
Fix getting/setting state on BoundRadioSelect
...
The state as returned from `ChoiceBlock.get_form_state` is an array of values, so getState / setState needs to work with that.
Fixes #11990
2024-05-29 19:26:56 +01:00
Tom Dyson
39bc851932
Add Jake to CONTRIBUTORS.md ( #11993 )
2024-05-29 11:24:14 +01:00
Matt Westcott
252bae9129
Update latest.txt for 6.1.1
2024-05-21 12:39:42 +01:00
Matt Westcott
a1b40fe4d0
Fill in release date for 6.1.1
2024-05-21 11:00:19 +01:00
Matt Westcott
d3df8d9948
Fill in release date for 6.0.4
2024-05-21 10:59:53 +01:00
Matt Westcott
b75c66ac42
Fetch new translations from Transifex
2024-05-21 10:55:23 +01:00
Matt Westcott
c28a260a1b
Release note for #11958
2024-05-21 10:24:40 +01:00
Matt Westcott
0ae74677b2
Refactor BoundWidget to accept an iterable of elements
2024-05-21 10:21:39 +01:00
Sage Abdullah
0cc274f36a
Allow multiple top-level nodes when rendering StreamField blocks
...
But keep passing just the first element to the BoundWidget class
2024-05-21 10:21:38 +01:00
Matt Westcott
bf3f87b759
Release note for #11957 in 6.1.1
2024-05-17 20:54:16 +01:00
Matt Westcott
7d2f485e97
Refactor rich text rewriter to introduce a TagMatch object
2024-05-17 20:51:37 +01:00
Andy Chosak
83af49327b
Properly handle out-of-order tag rewriting
2024-05-17 20:51:37 +01:00
Andy Chosak
f98c4f8ae8
Fix: Properly rewrite rich text with mixed links
...
The bulk rich text link rewriter logic introduced in PR 5875 doesn't
work properly if the rich text contains multiple link types where one
of those types doesn't need to be rewritten (for example external
links like <a href="https://wagtail.org/ ">).
This commit fixes that bug by handling these cases, and adds additional
unit tests to cover the failure cases.
Fixes issue 11957.
2024-05-17 20:51:37 +01:00
sage
8ddf472e93
Partially revert listing styles changes to fix layout issues ( #11936 )
2024-05-17 11:44:28 +01:00
Sage Abdullah
c8aeee941a
Only scan src in client directory for Tailwind to prevent unnecessary rebuilds
...
https://tailwindcss.com/docs/content-configuration#styles-rebuild-in-an-infinite-loop
This speeds up the FE production build from 60s to ~21s on my machine, and also speeds up hot rebuilds to just ~3s
2024-05-17 09:46:28 +01:00
Matt Westcott
4f5ffa85b6
Release note for #11943 in 6.1.1
2024-05-14 10:39:15 +01:00
Matt Westcott
4b7210dd51
Release note for #11943 in 6.0.4
2024-05-14 10:39:10 +01:00
Sage Abdullah
40980bab9d
Fix CopyView not prefilling the form data for snippets
2024-05-14 10:39:01 +01:00
Matt Westcott
df4c283ced
Release note for #11951 in 6.1.1
2024-05-13 18:50:06 +01:00
sage
36892908b6
Fix form action URL in user edit and delete views for custom user models ( #11951 )
...
* Add test for the form action URL in the user edit and delete views
* Reinstate context_object_name in users EditView and DeleteView
Mistakenly removed in 83e79301a9
2024-05-13 18:47:12 +01:00
Matt Westcott
a09bba67cd
Refactor image chooser pagination to check WAGTAILIMAGES_CHOOSER_PAGE_SIZE at runtime
2024-05-09 09:38:54 +01:00
Matt Westcott
6fa3985674
Release note for #11926
2024-05-08 12:34:39 +01:00
Jake Howard
84d9bd6fb6
Mention use of GitHub's security advisories
2024-05-08 12:34:39 +01:00
Jake Howard
37f9ae2ec6
Add note about bug bounties
2024-05-08 12:34:39 +01:00
Matt Westcott
4f78cced7f
Speed up semgrep on pre-commit ( #11927 )
...
Skip version check, and only run on Python files
2024-05-04 10:40:31 +01:00