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

5104 Commits

Author SHA1 Message Date
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
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
Sage Abdullah
d8a2826fb4
Release notes for #10767 and #10777 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
c7b5c9a04d
Update viewsets documentation to cover ViewSetGroups and menu item registration 2023-08-15 11:53:44 +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
ea8f45be85
Fill in release date for 5.1.1 2023-08-14 15:03:51 +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
LB Johnston
8fbf5df3f2 Docs - fix small typo in HTML layout 2023-08-09 19:50:59 +10:00
LB Johnston
db42d56bea Add changelog for #10742 2023-08-05 10:06:31 +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
Storm B. Heg
3be4e685c0
Remove unused WorkflowStatus view, urlpattern, and workflow-status.js 2023-08-03 15:16:08 +01:00
Sage Abdullah
801eccc930
Release notes for #10709 2023-08-02 15:45:14 +01:00
LB Johnston
fbde6118b7 Update npm scripts
- Add new stylelint fix script & generic 'fix' (all) script in npm scripts.
- Disable autofix on `stylelint-declaration-strict-value` as this requires a custom function to be created.
2023-08-02 21:03:27 +10:00
LB Johnston
956db6adcf Add changelog for #10682 2023-08-02 21:01:56 +10:00
Sage Abdullah
6f089f7728
Fill in release date for 5.1 2023-08-01 14:30:34 +01:00
Sage Abdullah
d88ee0c595
Group 5.1 upgrade considerations by impact 2023-08-01 13:36:16 +01:00
Sage Abdullah
e8a36191d2
Group 5.2 upgrade considerations by impact 2023-08-01 13:36:16 +01:00
Thibaud Colas
23cf9762df Update tutorial screenshots for Wagtail v5.1 2023-08-01 13:15:08 +01:00
Thibaud Colas
cc2a6bcc02 Move permissions consolidation and snippet enhancements to their own release notes sections 2023-08-01 13:15:08 +01:00
Sage Abdullah
84be5ba99b
Fix incorrect GroupPagePermission import in 5.1 release notes 2023-08-01 09:49:01 +01:00
Robert Rollins
9d6715e3dd Corrected a typo in {% page_header_buttons %}
Fixes #10730
2023-08-01 07:43:41 +10:00
Andy Chosak
d6ab9db01f
Don't update the reference index while deleting it
The rebuild_reference_index management command starts by
deleting the entire ReferenceIndex table.

In Wagtail versions 4.1 and 4.2, all models are tracked in the
reference index. Unfortunately this also includes the
ReferenceIndex model itself. This is changed in 5.0 to only track certain Wagtail-related models [0].

This means that when rebuild_reference_index runs in versions
4.1 or 4.2, and deletes the ReferenceIndex table, it runs the code that checks whether ReferenceIndex instances have any
references.

If the index contains a large number of references (as could
happen if an upgrade to 4.1 built an index for a non-Wagtail
model), this process becomes extremely slow. There's no need
for the rebuild_reference_index command to update the index
when deleting it, so this can be significantly optimized by
disabling auto update here.

[0] https://docs.wagtail.org/en/stable/releases/5.0.html#referenceindex-no-longer-tracks-models-used-outside-of-wagtail
2023-07-31 15:28:50 +01:00
Sage Abdullah
3179ea06bb
Add migration to replace JSON null values with empty objects in log entries' data 2023-07-31 15:12:22 +01:00
Sage Abdullah
5df19920df
Guard against TypeError in 0088_fix_log_entry_json_timestamps migration
Old logs may have the data set to JSON `null` instead of an empty JSON
object `{}`.

See https://github.com/wagtail/wagtail/pull/8021#issuecomment-1658082683
and https://github.com/wagtail/wagtail/pull/9590#discussion_r1279096075
for more details.
2023-07-31 14:11:58 +01:00
Sage Abdullah
1f1d57f621
Fix search_promotions 0004_copy_queries migration for long-lived Wagtail instances
This migration would fail on Wagtail instances that have been around
since v0.5 (when we still used django-south), because the column order
of the wagtailsearch_querydailyhits table is different from the newly-created
wagtailsearchpromotions_querydailyhits.

If you hit this issue, you deserve a 🌟
2023-07-31 11:27:55 +01:00
Sage Abdullah
39a723f9d1
Release notes for #10174 2023-07-28 09:26:57 +01:00
Sage Abdullah
fad37fd232
Add docs for migrating from modeladmin to snippets 2023-07-26 16:04:35 +01:00
Sage Abdullah
89ce8824ec
Always set help text element ID for form fields with help text in field.html template 2023-07-24 10:36:39 +01:00
Sage Abdullah
c220662eed Fix link in custom HTML attributes in Panels documentation 2023-07-21 06:36:11 +10:00
Jake Howard
69724e4e3a Create preview-aware & page-enhanced cache template tags
This can be used in other places, but ensures caches are invalidated
whenever something about a page changes.

- Add a util to get wagtail-specific fragment cache keys
- Don't pollute context when injecting site variable
- Add documentation on wagtail fragment caching
- Define an intelligent cache key for pages
- Allow the components of the cache key to be easily modified
- Note that some manual changes may not create a new cache key

Co-authored-by: Andy Babic <andyjbabic@gmail.com>

Closes #5074
2023-07-20 08:24:09 +10:00
LB Johnston
412b71ac1c Update Sphinx Wagtail Theme to v6.1.1 2023-07-20 07:50:33 +10:00
Dan Hayden
2ed1b33bb8 fix code block typo in streamfield_migrations.md 2023-07-20 07:48:09 +10:00
LB Johnston
b94f16e67c Fix a few minor typos in the 5.1 release notes / changelog 2023-07-19 11:34:17 +01:00
Matt Westcott
112fa6b72d
Set an AutocompleteField on FullFeaturedSnippet so TestFilterSetClassSearch works correctly 2023-07-19 11:05:34 +01:00
Sage Abdullah
a71232df7b Set up release notes for 5.2 2023-07-19 17:53:26 +10:00
Sage Abdullah
64f496a2e1 Remove old versionadded / versionchanged notes 2023-07-19 17:53:26 +10:00
Sage Abdullah
9f48a8af94 Fix incorrect versionchanged number for user_page_permissions deprecation 2023-07-19 17:53:26 +10:00
sgfost
61594a2616
Add docs for managing stored queries in searchpromotions
and update docs about the search -> searchpromotions migration.
2023-07-18 15:00:56 +01:00
LB Johnston
f3c3d31e23
Ensure userbar dialog can sit above other website content
- Fixes #10471
2023-07-18 13:53:06 +01:00
LB Johnston
ad6fd746b9 Documentation - Add recent third party tutorials 2023-07-18 21:48:59 +10:00