Wykres commitów

15185 Commity (0e1de4ccfa9747df6cfbde28d9db812bc135c67e)

Autor SHA1 Wiadomość Data
Thibaud Colas 0e1de4ccfa Release notes for #10282 2023-05-19 07:12:22 +01:00
Sage Abdullah 188bbbb0c5 Pass the correct for_update value for get_form_class in SnippetViewSet's edit views (#10445)
Fixes #10438
2023-05-17 13:59:15 +01:00
Sage Abdullah cc30fd3a13 Fix crash when deleting a single snippet using the bulk actions interface (#10447)
Fixes #10441
2023-05-17 12:46:02 +01:00
Thibaud Colas efb75c0ae3
Ensure comment buttons always respect WAGTAILADMIN_COMMENTS_ENABLED. Fix #10406 2023-05-17 10:49:16 +01:00
Sage Abdullah 1e9f925ff8
Add changelog for #10448 2023-05-17 10:19:13 +01:00
Christer Jensen 2189652ae9
Update documentation for `log_action` parameter on `RevisionMixin.save_revision`
Previous documentation seemed to incorrectly imply that
the default value for `log_action` was `True` when it is
in fact `False`. This can confuse readers not looking at
the method signature.
2023-05-17 10:10:03 +01:00
Sage Abdullah 351bffa304
Release notes for #10421 2023-05-15 16:02:26 +01:00
Matt Westcott a29c5c883e
Ensure that copying page correctly picks up the latest revision
Fixes #10393
2023-05-15 15:59:02 +01:00
Matt Westcott 8b32acb2ad add mock for updateSettings when testing TableBlock 2023-05-15 15:29:11 +01:00
Sage Abdullah 31948fc9db Fix TableBlock resize target selector
Fixes #10427.

In d51ec00ce1, the target was changed from
'[data-field] > .handsontable' to '.handsontable', as the .handsontable
element is no longer a direct descendant of the [data-field] element.

However, this means that we're marking ALL elements with .handsontable
as resize targets, which is not ideal as pretty much all elements
generated by Handsontable have that class.

The original logic would presumably only select the outermost element
with the .handsontable class, which is equal to the element with the
foo-handsontable-container ID (we store this in the containerId
variable).

Frankly, removing this selector outright would also fix the issue. That
said, let's keep this selector in anyway, to match the logic in older
releases.
2023-05-15 14:39:06 +01:00
Sage Abdullah b42e934449 Fix incorrect check of Handsontable size options
Regression in 933a730928 introduced in 4.2.

This causes the discrepancy seen between 4.1 vs 4.2 (and later). In 4.2,
this check was broken, which means the event handler never gets added.

The combination of the event handler and the incorrect selector (fixed
in the next commit) would resize all Handsontable elements, resulting in
the bug where the table cannot be interacted with.

The commit b9f8a6b6c0 fixed another cause
of the issue, which was calling `resizeWidth(getWidth())`. The
getWidth() function should only be used to set the Handsontable's
settings, while resizeWidth should be called with '100%' as done within
the event handler.

However, seeing that the event listener is not even attached in 4.2
onwards, dispatching the resize event might not be necessary and
Handsontable might already handle this correctly. That said, let's
avoid making other changes that could potentially cause issues.

With this commit, the bug should reappear in 4.2 and later releases,
making it consistent with 4.1. The bug will be fixed in the next commit.
2023-05-15 14:37:45 +01:00
Matt Westcott d8e8e240f4 Release note for #10430 in 5.0.1 2023-05-15 14:37:41 +01:00
Matt Westcott df91b382f3 Release note for #10430 in 4.2.4 2023-05-15 14:34:12 +01:00
Matt Westcott 900dce9362 Release note for #10430 in 4.1.6 2023-05-15 14:34:06 +01:00
Daniel Kirkham c895e9031b Fix treebeard link 2023-05-14 07:40:13 +10:00
Matt Westcott 728d70e4f9 Allow django-taggit 4.x 2023-05-12 17:49:06 +01:00
Matt Westcott 98a03fac2b Fix search test migration dependency for older taggit versions
The searchtests.0002_bookunindexed migration had a dependency on taggit migration 0005, which was added in django-taggit 3.0, but Wagtail only specifies django-taggit >=2.0, so this fails on older django-taggit versions. We don't want to bump this yet (since people could still legitimately be using django-taggit 2.x against Django 3.2 LTS), so fix this migration to work against older django-taggit releases.
2023-05-12 17:49:06 +01:00
LB Johnston c9a51968a8 Count Controller unit tests - avoid dupe body
- body element used but already appending to document.body
2023-05-12 17:09:13 +10:00
LB Johnston f1560625aa Docs - fix minor typo on Panels reference 2023-05-09 17:43:06 +10:00
LB Johnston 696d4557a9 Add changelog for #10408 2023-05-09 07:30:08 +10:00
Thibaud Colas 3671285fa5 Update ReadTheDocs settings to v2 to resolve urllib3 issue in linkcheck extension 2023-05-08 22:11:18 +01:00
Esper Kuijs 95bb06bd3c Fix typo in 5.0 release doc 2023-05-08 22:10:51 +01:00
Thibaud Colas acaff169c0 Update admin views, Draftail, TableBlock documentation images 2023-05-05 07:17:34 +01:00
Thibaud Colas e207db534e Update getting started tutorial images 2023-05-05 07:17:34 +01:00
Krzysztof Jeziorny 0552af3c30 Update third_party_tutorials.md
The article "10 (recommended) Wagtail Best Practices" is gone and not to find on the origin website.
2023-05-03 10:34:03 +01:00
Matt Westcott e5690be509 Update latest.txt for 5.0 / 4.1.5 2023-05-02 16:24:32 +01:00
Matt Westcott f6421c0eeb Fill in release date for 5.0 final 2023-05-02 15:29:09 +01:00
Thibaud Colas cc2f408916 Disable homepage release banner (#10398) 2023-05-02 15:28:32 +01:00
Matt Westcott 07f80a6caa Release note for #10367 in 4.2.3 2023-05-02 15:06:28 +01:00
Matt Westcott 170e842a03 Release note for #10367 in 4.1.5 2023-05-02 15:06:28 +01:00
Sage Abdullah 40b828a767 Link to RFC 85 and mention modeladmin deprecation in future release 2023-05-02 13:39:39 +01:00
Thibaud Colas dae099affa Prevent overlap between side panels resize grips and comments, preview 2023-05-02 13:06:03 +01:00
Thibaud Colas 418d3ec8b4 Add back minimap overflow when expanded, to display error badges 2023-05-02 13:06:03 +01:00
Matt Westcott f44b7b326b Credit YouGov for sponsorship of SVG support 2023-05-02 12:56:46 +01:00
Thibaud Colas b6d4e3109f Remove incorrect v4.1.5 release items 2023-05-02 12:03:09 +01:00
Matt Westcott 0d4dd36180 Fetch new translations from Transifex 2023-05-02 10:59:28 +01:00
LB (Ben Johnston) 252c4015a0
Fix translatable snippets listing language switcher position. Fix #10363 (#10376) 2023-05-02 10:00:08 +01:00
Thibaud Colas e407fb3612 Add release notes for #10371 2023-04-28 17:22:17 +01:00
Sage Abdullah f4ce346fe1 Fix side panel stuck in resize state when pointer is released outside the grip 2023-04-28 17:22:17 +01:00
Thibaud Colas 5cc663cf28 Move v5.0 snippets release notes to their own section 2023-04-28 16:20:39 +01:00
sag᠎e aa96dda15a
Fix dismissible SubMenuItem not showing the number badge when there's a new item (#10107)
Previously, we rely on the fact that the SubMenuItem itself is a dismissible. So, we decide how to show/hide the number badge based on the value for the SubMenuItem's dismissible ID on the server. However, this means that if the user has dismissed the SubMenuItem and we add new dismissible child items within it (e.g. update the ID for the 'What's new in Wagtail version' child item), the number badge will not show up. This commit changes the logic to show/hide the number badge based on whether there are any undismissed items within the SubMenuItem and whether the it has been opened or not.
2023-04-28 15:58:57 +01:00
Matt Westcott 511cf81e09 Add Wagtail 5 pypi classifier to docs
Fixes #10373 - classifier has been added in https://github.com/pypa/trove-classifiers/pull/138
2023-04-27 13:59:44 +01:00
4the4ryushin ecce6bc1c0 added support for parsing multiple queries (#10342) 2023-04-26 11:31:31 +01:00
Matt Westcott b946b3d66d Release note for read-only FieldPanels (#9129) 2023-04-25 17:08:19 +01:00
Matt Westcott 6f86a612a8 Move text_from_html to wagtail.utils.text 2023-04-25 16:57:05 +01:00
Andy Babic 5cee28756d Update tests 2023-04-25 16:07:50 +01:00
Andy Babic 5e692072dc Update tests 2023-04-25 16:07:42 +01:00
Andy Babic 3d7b540b10 Update docs 2023-04-25 16:06:40 +01:00
Andy Babic e60e4dbb43 Negate top margins on .w-field_label, so that the h3 version looks the same as regular labels 2023-04-25 16:06:08 +01:00
Andy Babic f930a26a98 Add choice field display value handling to FieldPanel 2023-04-25 16:06:01 +01:00