Matt Westcott
cfa4b7ca69
Copy view restrictions when creating a page alias
...
Rebuild of #10145 following modifications to #6406 . Fixes #10111
2023-08-18 19:10:01 +01:00
Matt Westcott
ea659cb98b
Release note for #10758
2023-08-18 17:45:31 +01:00
Sandeep
a1e50c57f6
Copy privacy settings on page copy ( #6406 )
...
Fixes #6212
2023-08-18 15:58:55 +01:00
Matt Westcott
44af83529e
Add Shreshth Srivastava to contributors
2023-08-18 13:02:32 +01:00
Shreshth Srivastava
ff16cb5a3e
Mention WAGTAILADMIN_BASE_URL in integrating_into_django.md ( #10758 )
...
Fixes #10741
Mentioned WAGTAILADMIN_BASE_URL and the warnings related to it in the 'Settings' section.
2023-08-18 13:00:42 +01:00
Matt Westcott
9dcebc549a
WagtailTestUtils.get_soup should accept HttpResponse, not HttpRequest
2023-08-17 14:45:31 +01:00
Sage Abdullah
cf9c264875
Use strict editable mode when installing on GitHub Actions
2023-08-16 15:54:33 +01:00
Sage Abdullah
d8a2826fb4
Release notes for #10767 and #10777
2023-08-16 11:42:11 +01:00
Sage Abdullah
276d8e1fcd
Turn off reference indexing for Locale, Site, and Group
2023-08-16 11:42:11 +01:00
Sage Abdullah
65739c6925
Add ModelViewSet.add_to_reference_index to allow opting out of the ReferenceIndex
2023-08-16 11:42:11 +01:00
Sage Abdullah
db49ae8c40
Simplify snippets registration code
...
For legacy-style registrations where register_snippet is passed a model, there is no change.
For new-style registrations, most of the logic is already handled by the ViewSetRegistry.register() or ViewSet/ViewSetGroup.on_register().
With this change, register_snippet() can now also take an instance of SnippetViewSet/SnippetViewSetGroup instead of class, and the same with the items in the group.
2023-08-15 12:00:38 +01:00
Sage Abdullah
e21b9bb79b
Move snippets ReferenceIndex registration to ModelViewSet
2023-08-15 12:00:38 +01:00
Sage Abdullah
745c715aef
Raise error when there are multiple registrations of the same snippet
2023-08-15 12:00:38 +01:00
Sage Abdullah
b5ac0a9e71
Move all snippets registration side effects to SnippetViewSet.on_register()
2023-08-15 12:00:38 +01:00
Sage Abdullah
2002ea0dc1
Extract chooser viewset registration to SnippetViewSet.register_chooser_viewset()
2023-08-15 12:00:37 +01:00
Sage Abdullah
c7b5c9a04d
Update viewsets documentation to cover ViewSetGroups and menu item registration
2023-08-15 11:53:44 +01:00
Sage Abdullah
ce83ac7ed3
Add tests for registering base ViewSets via ViewSetGroup
2023-08-15 11:53:44 +01:00
Sage Abdullah
df65ccadc6
Allow registering ViewSetGroup in ViewSetRegistry
...
and remove the hook's ability to register a list of viewsets as it's no longer used anywhere
2023-08-15 11:53:44 +01:00
Sage Abdullah
7a9837ddde
Remove/deprecate unused menu-related overrides in SnippetViewSet
2023-08-15 11:53:43 +01:00
Sage Abdullah
bfc2c3b3ea
Make SnippetViewSetGroup extend ModelViewSetGroup
2023-08-15 11:53:43 +01:00
Sage Abdullah
a0b536dfd9
Create ModelViewSetGroup class
2023-08-15 11:53:43 +01:00
Sage Abdullah
3f5ed68e58
Add WagtailMenuRegisterable overrides in ModelViewSet
...
This adds model-related defaults for the menu item label and class
2023-08-15 11:53:43 +01:00
Sage Abdullah
00681e27a9
Enforce ModelViewSet to define a model
2023-08-15 11:53:43 +01:00
Sage Abdullah
2e82ea0113
Create base ViewSetGroup class
2023-08-15 11:53:42 +01:00
Sage Abdullah
fb57cdad7c
Move ModelViewSet.icon to ViewSet.icon
2023-08-15 11:53:35 +01:00
Sage Abdullah
b12dc33c21
Make base ViewSet class extend WagtailMenuRegisterable
2023-08-15 11:52:48 +01:00
Sage Abdullah
332533301a
Create WagtailMenuRegisterable and WagtailMenuRegisterableGroup classes
2023-08-15 09:12:32 +01:00
Matt Westcott
e0b0d03cf0
Release note for #10782
2023-08-15 01:33:16 +01:00
Matt Westcott
9ff0f10310
Mention model_name in docstrings
2023-08-15 01:31:16 +01:00
Matt Westcott
485545a983
Allow ViewSet subclasses to customise url_prefix and url_namespace logic
...
Alternative approach to #10766 , as per https://github.com/wagtail/wagtail/pull/10766#issuecomment-1675043897
2023-08-15 01:31:16 +01:00
Sage Abdullah
0c6275c687
Update latest.txt for 5.1.1
2023-08-14 15:40:25 +01:00
Sage Abdullah
ea8f45be85
Fill in release date for 5.1.1
2023-08-14 15:03:51 +01:00
Sage Abdullah
0056bfa480
Fetch new translations from Transifex
2023-08-14 15:02:56 +01:00
Florent Lebreton
e7bb3e9d22
Fix read_only panels for fields with translatable choice labels
2023-08-10 11:16:13 +01:00
Storm B. Heg
1c12d96457
Add WagtailTestUtils.get_soup()
method to get a BeautifulSoup
object
2023-08-10 10:10:01 +01:00
Sage Abdullah
f0cfa62bda
Release notes for #10768
2023-08-10 09:17:44 +01:00
Sage Abdullah
c56ec67a39
Introduce BooleanColumn for showing boolean values as tick/cross icons
2023-08-10 09:11:26 +01:00
Sage Abdullah
d639cbbf4c
Call out ModelAdmin migration guide in 5.1 upgrade considerations
2023-08-10 09:11:26 +01:00
Sage Abdullah
133da4c3a9
Add docs for migrating ModelAdminGroup to SnippetViewSetGroup
2023-08-10 09:11:25 +01:00
Sage Abdullah
fd2a42955d
Show not-None falsy values instead of blank in generic table cell template
2023-08-10 09:11:25 +01:00
LB Johnston
8fbf5df3f2
Docs - fix small typo in HTML layout
2023-08-09 19:50:59 +10:00
LB Johnston
b9b444fd70
Clean up unit tests that passed a function/data to Promise.resolve
...
- Passing anything to Promise.resolve just means that will be the return value of the promise (.then)
- This does not actually run the function (e.g. in the case of requestAnimationFrame)
- Avoiding unit tests that could cause confusion in the future
2023-08-09 09:00:34 +10:00
LB Johnston
db42d56bea
Add changelog for #10742
2023-08-05 10:06:31 +10:00
Storm B. Heg
1dba117c2a
Update pre-commit hooks
...
Some linters and formatters were updated in 35dfdea
, but that did not
include the versions used by pre-commit.
2023-08-05 10:04:07 +10:00
Storm B. Heg
2c43ddbbd3
Add support for options/attrs in Telepath widgets & add required/aria-describedby
...
- This allows us to pass extra data for the widget to use in a backwards-compatible way.
- FieldBlock: render 'required' and 'aria-describedby' attributes when appropriate
- Ensure options passed to `render` override defaults
- FieldBlock: add test proving options are constructed and passed down
- Allow Telepath's widget rendering to take options
- Include extra accessibility-related attributes in html output
- Resolves missing required attribute on input elements for required fields
- Resolves missing aria-describedby attribute on input element when the field has help text.
- Partial work on #10300
2023-08-05 08:55:53 +10:00
Sage Abdullah
ebbd5d0767
Remove no_output_timeout and only use 2 CPU cores for running tests on CircleCI
2023-08-04 12:33:01 +01:00
Sage Abdullah
47e2705d19
Revert "Use file-based SQLite database when running tests on CircleCI"
...
This reverts commit bc71a28955
.
2023-08-04 11:49:22 +01:00
Sage Abdullah
bc71a28955
Use file-based SQLite database when running tests on CircleCI
2023-08-04 09:45:51 +01:00
Sage Abdullah
4d870af3b2
Set PYTHONUNBUFFERED=1 and increase no_output_timeout on CircleCI
...
https://support.circleci.com/hc/en-us/articles/360045268074-Build-Fails-with-Too-long-with-no-output-exceeded-10m0s-context-deadline-exceeded-
2023-08-03 15:28:53 +01:00
Storm B. Heg
3be4e685c0
Remove unused WorkflowStatus view, urlpattern, and workflow-status.js
2023-08-03 15:16:08 +01:00