Wykres commitów

6166 Commity (a506b7f0e223313f5298b0b08bcfd3fe02b01f7e)

Autor SHA1 Wiadomość Data
LB (Ben Johnston) 61fe21af16
Documentation - Add recent third party tutorials (#12442)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2024-10-25 13:50:50 +01:00
activus-d 97a1f5aabd Documentation - Improve project template (wagtail start) & add to management commands reference
Fixes #11938

* Add `wagtail start` to the management commands reference
* Add detail on how to creating templates with the need to escape template syntax by using the verbatim tag
2024-10-25 21:15:30 +10:00
LB fa81e2dbbe Docs - update spelling to US 'customizations' 2024-10-25 21:14:52 +10:00
Alessandro Chitarrini b9e13077bb Documentation - Refine the adding reports page
- Move all generic (page/non-page) class references to the top of the documentation
- Use better heading level nesting cleanly isolate the full page report example
- Relates to #12428
2024-10-25 20:40:02 +10:00
LB d5b56e00f6 Add changelog entry for docs changes #12437
Fixes #12435
2024-10-25 20:30:12 +10:00
Srishti-j18 2d644dd8e2 Documentation - Move tags out from pages model recipes to a standalone advanced topic 2024-10-25 20:30:12 +10:00
Srishti-j18 f588fcf249 Documentation - Reposition model & panel references
- Move model reference to directly under the references section, not the reference/pages section
- Move panel reference to directly under the references section, not the reference/pages section
- Merge panel API with panels reference pages
- Fix confusing heading levels in the page model recipes page
- Fix title in model reference to align with docs style guide
- Adopt US spelling for customize (panels) reference key
2024-10-25 20:30:12 +10:00
Thibaud Colas 25de8011d5 Release notes for #12460 2024-10-24 12:14:09 +01:00
Alex Morega e4e94a5640
Replace X links with Mastodon (#12460)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2024-10-24 12:09:59 +01:00
LB c0b2977647 Add links to 6.3 release notes documentation items 2024-10-24 11:51:15 +01:00
LB d459bdb5dc Clean up whitespace items in documentation markdown 2024-10-24 11:51:15 +01:00
Thibaud Colas 46d2e44cd1 Release notes for #12393 2024-10-24 10:18:19 +01:00
Thibaud Colas b680536286 Add release note template for 5.2.7 2024-10-24 09:57:11 +01:00
Thibaud Colas 3895136fd0 Add release note template for 6.2.3 2024-10-24 09:53:53 +01:00
Matt Westcott e9af16b48d Improve i18n of success message for bulk page actions (#12453)
Previously, translations for messages such as "1 page and 3 child pages have been published" were handled with separate branches for the "one parent page" vs "multiple parent pages" cases, to work around ngettext only being able to handle pluralisation for one item in the string. This fails for languages such as Polish where the pluralisation does not follow the straightforward one/many distinction.

Instead, we can translate "N pages" and "N child pages" separately before forming the final message. We generally avoid translating sentence fragments in isolation as this can make things difficult for translators if the sentence structure does not match the English version - but this is hopefully an improvement over the current situation, as well as simplifying the code and reducing repetition.
2024-10-23 15:54:11 +01:00
Matt Westcott 34cbec36b2 Start new release notes sections for 6.4 2024-10-23 16:45:46 +10:00
Matt Westcott bff75a2d08 Version bump to start work on 6.4 2024-10-23 16:45:46 +10:00
Matt Westcott bbb50459c9 Remove versionadded / versionchanged notes for 6.2
However, leave behind notes that mark settings/features that are deprecated but not yet removed, as this would be removing information that isn't in the main body of the text (and moving it out of a versionchanged note would make it harder to find when we come to remove it properly in 7.0).
2024-10-23 16:45:46 +10:00
Matt Westcott 4d31bd0a29 Add clarification on using versionadded / versionchanged directives 2024-10-22 22:13:36 +01:00
Matt Westcott c1ce58fb42 Add Uyghur language support to release notes 2024-10-22 17:13:26 +01:00
sumana sree d35eb68b78 Fix: Update `can_handle` method to check for AbstractGroupApprovalTask instances
- Fixes #12328
- Regression from #11653
2024-10-22 08:19:38 +10:00
Matt Westcott 76070a037c Remove unused headings from 6.3 upgrade considerations 2024-10-21 18:03:59 +01:00
Matt Westcott 113aaf90c9 Mark 6.3 as an LTS release 2024-10-21 18:02:48 +01:00
Matt Westcott c4a48fffbb Release note for #12434 2024-10-21 17:51:34 +01:00
Thibaud Colas caec6d3a82 Release notes for #12419 2024-10-21 17:30:33 +01:00
Sage Abdullah 0dd7d12aaf
Release note for #12393 2024-10-21 16:53:30 +01:00
Bojan Mihelac 83a390661f Fix child restriction admin form when ancestors page view restrictions exists (#12124)
Fixes #4277
2024-10-21 16:29:19 +01:00
Matt Westcott 93f8600c31
ImageBlock for StreamField (rebase of #11791) (#12416)
Co-authored-by: Chiemezuo <chiemezuoakujobi@gmail.com>
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2024-10-21 16:11:34 +01:00
Rohit Singh 105338d0d6
Fix datetime fields overflowing its parent wrapper in listing filters 2024-10-21 09:45:19 +01:00
frankyiu 97fadba582 Fix long name issue in document chooser table cell (#12430, #12431)
Fixes #12357
2024-10-20 13:47:35 +01:00
Ankit Kumar 329db8e58a
Added missing link to the Code of Conduct in the community guidelines… (#12432)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2024-10-20 11:27:21 +01:00
Matt Westcott 72fb0e9880 Stop history view from breaking if a log entry's revision is missing (#12427)
e.g. after the purge_revisions management command has been run
2024-10-18 18:52:47 +01:00
Sævar Öfjörð Magnússon 207e9e50d9 StaticBlock renders empty in templates (#12425) 2024-10-18 18:27:33 +01:00
Sage Abdullah ee635534af
Release note for #12414 and #12130 2024-10-18 18:19:18 +01:00
Sage Abdullah 5909d3e822
Apply suggestions from code review 2024-10-18 18:19:18 +01:00
alexkiro b38141ad82
Allow customization of preview device sizes
Co-authored-by: Bartosz Cieliński <bart@fullfatthings.com>
2024-10-18 18:19:17 +01:00
Sage Abdullah 49f9ae3a96 Fix error in workflows listing with multiple snippets assigned on PostgreSQL (#12367)
Fixes #12364
2024-10-18 17:43:49 +01:00
Matt Westcott 0d0700207d Release note for #12384 2024-10-18 13:02:24 +01:00
Matt Westcott 92567f6203 Document HEIC image support 2024-10-17 23:12:27 +01:00
Thibaud Colas 4725b80a13 Release notes for #12400. Fixes #9030, #9869 2024-10-17 13:33:08 +01:00
Albina 488c3583b7
'Prefers-contrast' admin theming (#12348)
Co-authored-by: Victoria Ottah <82820329+Toriasdesign@users.noreply.github.com>
2024-10-17 09:13:22 +01:00
Robin Varghese 576eaf37b2
Add support for specifying different preview modes to the "View draft" URL for pages 2024-10-15 17:38:34 +01:00
Thibaud Colas 28fcd01a31 Update colors table with new theme tokens 2024-10-14 14:40:00 +01:00
Albina 9a7427a589
Incremental dashboard enhancements. Fix #12089 (#12233)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2024-10-14 14:39:39 +01:00
LB Johnston 309e47f0cc Add changelog for adding warning for unsaved edits in snippets
Closes #8453
2024-10-11 17:52:59 +10:00
Matt Westcott efa2a88642 Ensure that TypedTableBlock uses the correct API representations of child blocks
TypedTableBlock did not provide a `get_api_representation` method, so it fell back on returning the database JSON representation as returned by `get_prep_value`. This resulted in an API representation that was mostly usable, but failed to respect child blocks that override `get_api_representation` themselves.
2024-10-11 17:07:19 +10:00
Chiemezuo 5cc22f3f75 Add "description" field to AbstractImage
- Baseline support for upcoming alt text capabilities
2024-10-11 17:07:06 +10:00
Matt Westcott 27b972d30f Add support for Python 3.13 2024-10-11 16:10:07 +10:00
Gabriel Getzie 9933432ec7 change document file_size to PositiveBigIntegerField (#12397)
Fixes #12396
2024-10-10 19:54:58 +01:00
Matt Westcott a8b4a13920 Release note for #12382 2024-10-10 19:14:26 +01:00
LB Johnston 912c0881f9 Remove window.fileupload_opts global usage, use data attributes instead
jQuery data is used by the jQuery file upload widget and will automatically parse data attributes as objects/or JS primitive values - see https://api.jquery.com/data/

jquery File Upload will automatically parse the data attributes and treat as the default options for initialisation (already used for the url) - see https://github.com/blueimp/jQuery-File-Upload/wiki/API#data-attributes

- Closes #9771 - avoiding globals for UI specific configs
- Relates to #1288 - ongoing work for CSP compliance
2024-10-09 08:01:44 +10:00
LB Johnston 9cbe1a507a Deprecate `window.wagtailConfig.BULK_ACTION_ITEM_TYPE` usage in JS
- Avoid using a window global and inline scripts to declare the current bulk action's item time
- Deprecate the usage of `window.wagtailConfig.BULK_ACTION_ITEM_TYPE` with a release note and code comment so that it can be removed in a future release
- Update bulk actions footer template to accept a `item_type` arg, adding this to the DOM element for access within the JavaScript
- Allow a fallback on the model name for core models (e.g. page)
- Also ensure that `{{ block.super }}` is consistently added at the top of the `{% block extra_js %}` (as it is with most usage)
- Relates to #9771 and supports a future migration for bulk actions towards Stimulus
- Relates to ongoing work for CSP compliance #1288
2024-10-08 17:55:28 +10:00
Jake Howard 4727663fa6 Remove multi-line icon comments
Ensure multi-line comments are cleaned from custom icons in addition to just single line comments.
This doesn't affect Wagtail's, but could reduce the size of 3rd-party icons.
2024-10-02 15:52:09 +10:00
rahulsamant37 50ba3a9c44 Update email notification header to new logo
- Fixes #12369
- Relates to logo update #10404
2024-10-02 15:43:57 +10:00
Krzysztof Jeziorny 72292d4d01
Documentation: Configure API to use the DRF's TokenAuthentication (#12363)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2024-09-29 15:59:15 +01:00
Ishwari8104 f86161ba00
Ensure dropdown toggles show with border in high contrast mode
Update _dropdown.scss (#12365)
2024-09-29 16:37:38 +10:00
Matthew Scouten 1f7710c4d8 oEmbed - Update polldaddy to crowdsignal & remove polleverywhere
- Update polldaddy oEmbed to crowdsignal (changed in 2018) https://crowdsignal.com/2018/10/18/introducing-crowdsignal/
- Remove polleverywhere as it no longer supports oEmbed
2024-09-28 18:26:53 +10:00
Drikus Roor 6aa4647120 docs: Clarify file location, add missing imports 2024-09-28 17:45:32 +10:00
Sage Abdullah 3a9b975ba1 Fix UnsavedController.forceValue not immediately notifying the unsaved changes
Fixes #12355
2024-09-28 17:41:48 +10:00
Shubham e7de2f8955 Refactor UnsavedController to use event.preventDefault() to trigger browser confirmation dialog
Per https://developer.mozilla.org/en-US/docs/Web/API/Window/beforeunload_event

"best practice is to trigger the dialog by invoking `preventDefault()`
on the event object, while also setting `returnValue` to support legacy
cases."

We don't need to support legacy cases, as our supported browsers all
support the `preventDefault()` approach.

See also:
https://caniuse.com/mdn-api_window_beforeunload_event_preventdefault_activation

Fixes #12132

From PR #12139
2024-09-28 17:41:48 +10:00
Coen van der Kamp abcb2da372 Add translatable model copy for translation done signal (#12362) 2024-09-27 16:01:52 +01:00
LB Johnston a5c31f91c2
Mark js_translation_strings template tag for deprecation
- `js_translation_strings` is no longer used by Wagtail admin code
- It was historically used for generating the JS config strings within templates, we now do this in Python and expose as JSON via the `wagtail_config` template tag
- Add a warning for deprecation so that we can remove this unused template tag in the next major version of Wagtail
- See #9771 for context
2024-09-26 01:12:31 -04:00
Sage Abdullah 53f55a8786
Release note for #11166 2024-09-25 14:52:50 -04:00
LB Johnston 429732f09e
Start deprecation for the `locales` as a template tag
- This was only used by our JS config globals and can now be removed in a future release
2024-09-25 14:45:45 -04:00
SebCorbin 83f00a8363 Capfirst should be used on model verbose name instead of title (#12358) 2024-09-25 17:13:21 +01:00
Cynthia Kiser d526612e4b
Added example for customizing a default accessibility check (#12267)
Co-authored-by: Albina <51043550+albinazs@users.noreply.github.com>
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2024-09-24 11:00:20 +01:00
Albina 722b79d9be
Fix minimap toggle visibility (#12279)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2024-09-24 10:58:23 +01:00
Thibaud Colas c2b35b8945 Release notes for #12045 2024-09-24 10:52:01 +01:00
Matt Westcott 246aaa42d9 Fill in release date for 6.2.2 2024-09-24 10:09:12 +01:00
Matt Westcott f43a516219 Release note for #12352 in 6.3 2024-09-24 09:26:57 +01:00
Matt Westcott 281d600db3 Release note for #12352 in 6.2.2 2024-09-24 09:26:19 +01:00
Matt Westcott 5aa0673452 Update `WAGTAIL_WORKFLOW_REQUIRE_REAPPROVAL_ON_EDIT` docs to indicate that default is False (#12340)
Fixes #12329
2024-09-19 16:41:17 +01:00
Matt Westcott 7083bc9460 Docs - Update spelling & reference in release notes for UserViewSet for 6.2.2 2024-09-19 10:12:34 +01:00
LB Johnston 7a03106ddd Docs - Update spelling & reference in release notes for UserViewSet 2024-09-19 10:11:42 +01:00
LB Johnston 8b3540de0d Simplify Wagtail docs section titles
- Avoid additional 'Wagtail' names in the docs titles (inc. contributing)
2024-09-19 10:09:46 +01:00
LB Johnston 8f215bda5f Rename deploy URL to deployment + update title 2024-09-19 10:09:46 +01:00
Matt Westcott a3d06be90c Release note for #12332 in 6.3 2024-09-19 10:01:27 +01:00
Matt Westcott 2cc5cea4c7 Release note for #12332 in 6.2.2 2024-09-19 10:01:05 +01:00
sag​e e529b5b84e
Fix content metrics plugin to work on the main element before falling back to `body` (#12295)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2024-09-19 08:53:12 +01:00
LB Johnston d677b1fa24 Add changelog for migrate preview-panel.js to Stimulus PreviewController
- Closes #11677
2024-09-19 08:22:54 +10:00
Sage Abdullah 706b95f670 Deprecate the WAGTAIL_AUTO_UPDATE_PREVIEW setting 2024-09-19 08:22:54 +10:00
Sage Abdullah 014ffb5ce9 Ensure the side panel's show event is dispatched after any hide events
If the event is dispatched in the loop, then the show event may be
dispatched before the hide event is dispatched. For example, if you're
switching from the checks panel to the preview panel, as the preview
panel is ordered before the checks panel in the DOM.

This could cause an issue with the preview panel code, where we listen
for the show event to activate the auto update, and listen to the hide
event to deactivate it. We're listening to both the preview and checks
side panels.

Without this fix, the preview auto-update will get deactivated upon
switching from the checks panel to the preview panel, as the hide event
is dispatched after the show event.
2024-09-19 08:22:54 +10:00
Sage Abdullah 30f1115353 Fix debounce() return type to follow original function
Without typing Promise and Promise.resolve with R, it defaults to
unknown, so the R generic type can't be used.

Also, the debounced function's args should take the generic A parameter
instead of redefining it as any[].
2024-09-19 08:22:54 +10:00
LB Johnston 6bb0c7597f Docs - Hacktoberfest - Remove reference to the t-shirt
There is no longer a t-shirt reward as of 2023
https://hacktoberfest.com/participation/#faq
2024-09-19 08:03:36 +10:00
sanjeevholla26 aa3be4b888 [UI]: Changed class from warning to failure for confirm delete message
Ensure the contrast of the message is suitable
Fixes #12232
2024-09-18 09:48:41 +10:00
Matt Westcott 9c153d27ea Release note for #12327 2024-09-17 18:12:50 +01:00
Matt Westcott baa2e15d82 Update Atif Khan's name in release notes 2024-09-17 17:23:31 +01:00
Matt Westcott 66ff3c52cc Use non-tracked links in Divio hosting details
As per https://github.com/wagtail/wagtail/pull/12250#discussion_r1762523573
2024-09-17 14:37:08 +01:00
Atif2077 96f8324458 Modified slugify/urlify to according to django's slug validator (#12319)
Fixes #12300
2024-09-17 13:14:51 +01:00
Sage Abdullah 6affa04d32 Add search and filters from PageListingMixin to form pages listing (#12324) 2024-09-17 09:58:12 +01:00
Matt Westcott a7ad9ba5f1 Release note for #12275 2024-09-16 20:27:12 +01:00
Matt Westcott 63fb2b123d Release note for #12248 2024-09-16 14:23:59 +01:00
Matt Westcott 84ab70d3a1 Release note for #12272 2024-09-16 09:27:23 +01:00
Daniel Black 93b9c04ce7
Update MySQL and MariaDB healthcheck commands for GitHub Actions
mysqladmin ping and mariadb-admin ping can return healthy during their
initialization stage as by default these connect over unix socket.

Add --protocol=tcp to mysqladmin to report healthy when a TCP
connection occurs. The initial startup uses --skip-networking.

MariaDB has a built-in healthcheck.sh in its container:
https://mariadb.com/kb/en/using-healthcheck-sh-script/
2024-09-13 11:22:47 +01:00
Matt Westcott bd90802877 Release note for #12261 2024-09-13 09:23:59 +01:00
Matt Westcott 4e0236d5c2 Release note for #12298 in 6.3 2024-09-12 19:18:12 +01:00
Matt Westcott 31a3a47263 Release note for #12298 in 6.2.2 2024-09-12 19:17:49 +01:00
Matt Westcott 4e4fac003b Release note for #12310 / document support for MariaDB 2024-09-12 19:11:22 +01:00
smark-1 14c2150f29
Add generated `test-media` to .gitignore 2024-09-12 14:18:34 +01:00
Matt Westcott 48b3a52c92 Release note for #12268 in 6.2.2 2024-09-11 19:48:35 +01:00
Matt Westcott 2b481e677c Release note for #12268 in 6.3 2024-09-11 19:47:02 +01:00
Sage Abdullah 50a1aba134 Clarify UserViewSet customization to avoid confusion with the custom user model's app config 2024-09-11 19:44:36 +01:00
smark-1 467cced098 Fix typo advantage in docs/deploy/under_the_hood.md 2024-09-08 19:08:29 +01:00
Matt Westcott cf07674b92 Release note for #12276 2024-09-06 12:13:29 +01:00
Thibaud Colas 74681487e0 Release notes for #12203 2024-09-06 11:46:43 +01:00
Sage Abdullah 5038418b1e
Release note for #12236 2024-09-06 11:41:00 +01:00
Vince Salvino 9545193907 Add official hosting documentation
- Create a deploy section of the documentation
- Move fly.io deployment from tutorial to it's own page under deploy
- Clean up deployment docs and references throughout documentation
2024-09-03 07:59:20 +10:00
LB Johnston 4af8ab528b Documentation - formatting clean up 2024-08-29 18:32:20 +01:00
LB Johnston 7f2bcb677b Update 6.3 release notes (clean up + docs links) 2024-08-29 18:28:07 +01:00
LB Johnston 29d9b0d72e Add docs links for 6.2 release notes 2024-08-29 18:28:07 +01:00
LB Johnston 1790bdd158 Align recent docs & release notes to US spelling 2024-08-29 18:28:07 +01:00
Matt Westcott 0d8b8386e2 Refactor StreamField get_prep_value for closer alignment with JSONField (#12269) 2024-08-29 18:04:06 +01:00
Matt Westcott 7051363f9f Change Twitter to X in security.md 2024-08-27 15:32:17 +01:00
Matt Westcott c574954a0a Release note for #12244 in 6.2.2 2024-08-27 15:06:15 +01:00
Matt Westcott ce5ba9efdf Add release note template for 6.2.2 2024-08-27 15:06:13 +01:00
Matt Westcott 50c4d32a54 Release note for #12251 2024-08-27 14:16:03 +01:00
Matt Westcott 6857f6431a Release note for #12217 2024-08-23 16:18:18 +01:00
Matt Westcott 5014d50490 Release note for #12226 2024-08-23 15:54:02 +01:00
SebCorbin d0098f394d Fix duplicate class attribute in image chooser (#12245) 2024-08-23 15:40:07 +01:00
vossisboss 7582a9932a Adding updated tutorial link requested by DIVIO. 2024-08-23 15:31:24 +01:00
SebCorbin b0b33514dd Fix typo in attribute (#12246) 2024-08-23 15:28:26 +01:00
Matt Westcott 688d833451 Fill in release date for 6.2.1 2024-08-20 16:20:46 +01:00
Matt Westcott 9c921481dd Release note for #12237 2024-08-20 16:04:15 +01:00
Matt Westcott df08f99945 Avoid importing custom user models at load time in wagtail.admin.models
As per https://docs.djangoproject.com/en/5.0/topics/auth/customizing/#referencing-the-user-model , module-level code such as ForeignKey definitions should use `AUTH_USER_MODEL` rather than `get_user_model()`.

Probably fixes #12228 (unconfirmed)
2024-08-15 11:08:24 +01:00
Matt Westcott bd87ccf517 Release note for #12223 2024-08-13 20:23:56 +01:00
Matt Westcott 72b965cd94 Formalise support for Django 5.1 2024-08-12 11:26:44 +01:00
Sage Abdullah e83d23ca2a Fix broken task type filter in workflow task chooser modal (#12213)
Fixes #12210
2024-08-08 18:52:26 +01:00
Matt Westcott c7a42c4b34 Update django-taggit dependency to allow 6.0.x (#12220) 2024-08-08 16:19:41 +01:00
Jake Howard 22fe143d36 Purge frontend cache when modifying redirects (#12185) 2024-08-06 19:25:28 +01:00
Matt Westcott ca63bdf5ee Release note for #12156 2024-08-06 17:52:21 +01:00
Matt Westcott d327a0dd50 Handle `child_block` being passed as a kwarg in ListBlock.deconstruct_with_lookup (#12208)
Fixes #12202
2024-08-06 14:37:33 +01:00
Matt Westcott 5281432127 Add release notes template for 6.2.1 2024-08-06 14:37:23 +01:00
NayanshiSingh bf91e185bf Update twitter link in support docs to x.com (#12205)
Fixes #12206
2024-08-05 13:54:37 +01:00
Vince Salvino 067ebc01ec Add example date/time formatting for the Wagtail admin settings. (#12083) 2024-08-02 13:54:13 +01:00
Matt Westcott 98705762bf Fill in release date for 6.2 2024-08-01 13:02:20 +01:00
smark-1 6672f4b518
Fix typo in admin url finder docs (#12193) 2024-08-01 11:48:20 +01:00
DK a11414447d
Fix typo in 6.2 release notes and changelog (#12192)
Co-authored-by: Daniel Kirkham <d.kirkham@kirkham.id.au>
2024-08-01 11:44:56 +01:00
Vaughn Dickson 0dc233b0fa Add missing getTextLabel implementation for BaseDateTimeWidget, so the value is displayed if it is available instead of a JavaScript 'null'. (#12162)
Fixes #12094
2024-07-31 18:05:37 +01:00
Thibaud Colas 96db233bf0 Disable pointer events on checker highlights to simplify DevTools inspections 2024-07-31 10:43:07 +02:00
Thibaud Colas aa070ef08e Log accessibility checker results when present 2024-07-31 10:43:07 +02:00
Matt Westcott b34f8b79a1 Release note for #12155 2024-07-29 18:36:43 +01:00
Sage Abdullah dfe9638e7d Replace pytz.common_timezones with zoneinfo.available_timezones
and remove pytz dependency
2024-07-29 18:31:30 +01:00
Sage Abdullah b757524708 Do not suggest using the custom user model's app config as the custom wagtail.users app config
Doing so would mean the "models" module of the app that contains the
custom user model will be used in favour of the models module of the
wagtail.users app, which contains the UserProfile model. As a result,
the UserProfile model becomes mistakenly picked up by the wagtailcore
app, creating a bogus migration when makemigrations is run.

This partially reverts the docs to the version before
449a48d7f9, in particular the paragraphs
about creating the custom AppConfig subclass for wagtail.users.
2024-07-29 17:35:08 +01:00
Matt Westcott fa8f9415c9 Release note for #12084 2024-07-29 15:59:27 +01:00
Sage Abdullah a5bb99bf67 Fix duplicated rich text input inside choosers (#12173)
Fixes #12002
2024-07-29 15:08:33 +01:00
Matt Westcott efc419a3a1 Use Nathanaël Jourdane's full name 2024-07-26 10:34:23 +01:00
Matt Westcott 42c566b19b Remove note about database search not ordering by relevance
This text existed since Wagtail 1.x and is referring to the original database backend that just did substring matches (which is now the fallback backend), before we supported database-backed full-text search.
2024-07-24 22:31:53 +01:00
Matt Westcott 526c7da018 Make StreamField migration a headline release note for 6.2 2024-07-23 11:56:34 +01:00
Thibaud Colas 4616501fb9 Reorder and rewrite 6.2 release notes 2024-07-23 10:51:44 +01:00
Matt Westcott ed5749ca1e Release notes for #12149 and #12150 2024-07-23 10:15:30 +01:00
Matt Westcott f7fa20e600 Upgrade Sphinx to 7.3; use newer syntax for no-index directive and --fail-on-warning switch 2024-07-23 10:13:03 +01:00
Matt Westcott a8a29201c9 Drop support for Python 3.8 2024-07-23 10:12:45 +01:00
Sage Abdullah 012cd99c1b
Release note for #12017 2024-07-22 17:21:58 +01:00
Matt Westcott 0e60590676 Fix no-index directive for Sphinx 7.4.7 2024-07-22 14:21:16 +01:00
Matt Westcott 9cd2005a09 Add release note stubs for 6.3 2024-07-22 13:43:34 +01:00
Matt Westcott 6d6ec7762d Version bump to start work on 6.3 2024-07-22 13:43:34 +01:00
Matt Westcott e1f9d97238 Remove versionadded/versionchanged notes for 6.1 2024-07-22 13:43:34 +01:00
Matt Westcott 9f518a007d Remove unused heading from 6.2 upgrade notes 2024-07-19 16:50:52 +01:00
SebCorbin ca5d54cb89 Fix check when using FORMAT_MODULE_PATH (#12006)
Fixes #12005
2024-07-19 15:56:53 +01:00
Thibaud Colas c569e08d7d Release notes for #12099 2024-07-19 13:14:30 +01:00
Sage Abdullah f8564055b1 Add WAGTAIL_EDITING_SESSION_PING_INTERVAL setting 2024-07-19 13:14:30 +01:00
SebCorbin 966f2df4ce
Fix focal point data being localized 2024-07-19 12:19:16 +01:00
Th0masCat 5cc28acc56
Fix not allowed extension not showing in the error message 2024-07-19 12:07:36 +01:00
Matt Westcott f82f6fd2b7 Downgrade minimum version of Sphinx for Python 3.8 compatibility
In 5a8c33f34a the minimum version was set to 7.3 to allow use of the long-form `--fail-on-warning` option, but this is not compatible with Python 3.8. Revert this to the original `-W` option and set 7.0 as the minimum version.
2024-07-19 12:01:18 +01:00
Nathanaël Jourdane 5a8c33f34a doc: fix pdf export (#12076) 2024-07-19 01:27:07 +01:00
Matt Westcott e066424163 Release note for #12044 2024-07-19 00:23:55 +01:00
Matt Westcott a7d72f9fbf Fix formatting errors 2024-07-19 00:21:39 +01:00
Chris Shenton d1c020cd5f Fix Page.copy ref; silence warnings due to Sphinx missing support for type hints
Builds upon HimanshuGarg47:fix/11972-documentation-build-with-errors
2024-07-18 23:15:58 +01:00
Himanshu Garg de4eee4849 update 1.1.rst 2024-07-18 23:15:51 +01:00
Himanshu Garg 9adf742580 fixes errors by adding aliases, double backtick, changing indexentry 2024-07-18 23:15:40 +01:00
Himanshu Garg e02ca6ce62 fixes some of errors by removing directives 2024-07-18 23:13:26 +01:00
Sage Abdullah 6b5662cbdc
Release note for #12023 2024-07-18 18:26:38 +01:00
smark-1 95eac5ab78
Allow page to change private page options 2024-07-18 17:23:30 +01:00
Albina 2d568dd825
Content checks design upgrade: help text and separate cards (#12090)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2024-07-16 22:27:27 +01:00
Albina 62674d3fbb
Add underscore as an alt text antipattern (#12119) 2024-07-16 08:53:23 +01:00
Thibaud Colas 707467503d Release notes for #12092 2024-07-16 08:08:26 +01:00
Sage Abdullah 063c52e1f2 Move inline script for activating workflow actions to workflow-action.js
Also deprecate the `window.ActivateWorkflowActionsForDashboard` and
`window.ActivateWorkflowActionsForEditView` functions as they no longer
need to be globally-accessible
2024-07-16 08:08:26 +01:00
Albina 14f3d4607f
Add content metrics board (#12058) 2024-07-11 14:58:19 +01:00
Matt Westcott 74b2f54e05 Add release notes / fill in release date for 6.1.3 2024-07-11 11:43:18 +02:00
Matt Westcott 26de9fdc19 Add release notes for 6.0.6 2024-07-11 11:41:57 +02:00
Matt Westcott 11c061e51e Fill in release date for 5.2.6 2024-07-11 11:41:38 +02:00
Matt Westcott 7c16075342 Release note for CVE-2024-39317 in 5.2.6 2024-07-11 11:40:54 +02:00
Matt Westcott 0932ba395c Release note for #11952 2024-07-10 17:12:12 +02:00
Sage Abdullah f126a4860e Deprecate user form-related settings 2024-07-10 17:10:36 +02:00
Sage Abdullah 449a48d7f9 Reorganise docs for custom user forms to prefer UserViewSet customisation
And make small tweaks to the GroupViewSet docs so the custom apps
examples align.
2024-07-10 17:10:36 +02:00
Sage Abdullah dc892ac232 Document UserViewSet customisation 2024-07-10 17:10:36 +02:00
Jake Howard 35a197d609 Move sprite hashing out of module import time
This speeds up application startup. The hash is now a query param, injected in the template. As this param is only needed for cache invalidation, it's optional. A helper method is provided to generate the URL, along with a template tag.

This also migrates to an `lru_cache` over a global variable for simplicity.

Fixes #11680
2024-07-09 07:02:28 +10:00
Daniel Kirkham d00df53a62 Document the vary_fields property for custom image filters 2024-07-09 06:53:27 +10:00
smark-1 ad884fe8d5 Add better docs for generating URLs on creating admin views
- Fixes #11963
2024-07-09 06:38:51 +10:00
Afonso 76fb103f54
Fix #11716: Failure in Dynamic Image ServeView
Added back a line that was removed in a previous commit,"rendition.file.open("rb")" in serve.py.
Also, created a test in admin/tests/viewsets , test_image_presence.py that confirms that
the issue has been resolved. The test looks for a status error code 500 in the display of an image,
something that happenned when the dynamic serve view failed. If it finds it, the test fails.
The test also passes when we dont't use a dynamic serve view.

Co-authored-by: SebCorbin <sebastien@rgoods.com>
2024-07-04 11:10:50 +01:00
Andy Chosak a81cabce05 Expose URL resolver match for RoutablePageMixin (#11953)
Django provides an `HttpRequest.resolver_match` attribute [0] that
allows downstream code to inspect a request object to see how its URL
was resolved to a view.

Wagtail's RoutablePageMixin does its own sub-URL routing to call
different view functions on a page object, but the resolver result isn't
similarly made available.

This commit sets a new `routable_resolver_match` attribute on the
request object, akin to Django's `resolver_match`, that stores this
sub-URL routing information for downstream use.

Documentation has been updated appropriately (along with a couple of
other minor broken things in the RoutablePageMixin docs).

[0] https://docs.djangoproject.com/en/5.0/ref/request-response/#django.http.HttpRequest.resolver_match
2024-07-03 14:17:12 +01:00
Ben Dickinson 2c6ab32d61 Fix bug with .get_menu_item(order=0) calls (#12082) 2024-07-02 17:34:22 +01:00
Matt Westcott 9ef20ca08d Release note for #12097 2024-07-02 16:48:16 +01:00
Romein van Buren 7fca2d74a0 Add label to "user" column in views.generic.HistoryView (#12101)
Fixes #12100
2024-07-02 16:02:56 +01:00
Sage Abdullah 94d92ed822
Release note for #11987 2024-07-02 12:17:21 +01:00
Sage Abdullah ab8d721f92
Add upgrade considerations for migrating non-page reports to universal listings 2024-07-02 11:56:40 +01:00
Sage Abdullah 94baf0645a
Deprecate ReportView.title in favour of page_title
The latter is enforced by WagtailAdminTemplateMixin
2024-07-02 10:49:32 +01:00
Sage Abdullah c18068c079
Add upgrade considerations for migrating report views to universal listings 2024-07-02 10:49:32 +01:00
Sage Abdullah 7ab8e6932f
Add breadcrumbs and new AJAX-based filtering to built-in report views
The export buttons, while working correctly on initial load, is still
broken upon filtering on the client-side. This is because the base
listing results template has yet to include the re-rendered header
buttons. As a result, the export links won't be updated on filter.

This will be fixed in the next commit.

Also, the "by task" and "by workflow" links in the workflow reports are
gone because the slim header doesn't support passing arbitrary actions
fragment. This will be fixed in another commit using header_buttons.
2024-07-02 10:49:30 +01:00
Sage Abdullah 245baa9065
Consolidate base_page_report.html into base_report.html
The template is no longer used in Wagtail itself, but we
keep it around for now so that custom page reports don't
immediately raise an error.
2024-07-02 10:49:30 +01:00