Wykres commitów

18352 Commity (581bb5ccd79361c476463d72156eabbf7f950272)

Autor SHA1 Wiadomość Data
Matt Westcott 581bb5ccd7 Use double quotes in code snippet
Co-authored-by: sag​e <laymonage@gmail.com>
2025-01-16 14:53:16 +00:00
Matt Westcott 54797e3826 Document Block.get_template in StreamField usage guide 2025-01-16 14:53:16 +00:00
Cynthia Kiser f3d1765353
Update example for customizing "p-as-heading" check (#12763)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2025-01-15 16:34:13 +00:00
Matt Westcott 8b3eb44340 Fix TestFormPageWithCustomFormBuilder assertion against Django 5.1.5 and other security releases
Django 5.1.5 (and other security releases released today) has added a `max_length` attribute to GenericIPAddressField, which breaks an assertion in the form builder tests that compares HTML directly. Change this to a BeautifulSoup-based test so that it works on older and newer releases.
2025-01-15 10:58:27 +00:00
Andy Babic 88a3a397ca Prevent redundant calls to Site.find_for_request() from Page.get_url_parts() (#12454) 2025-01-15 00:41:57 +00:00
Rishabh Sharma 782aa0e16b
Reduce confusing spacing below StreamField blocks help text. Fix #11888 (#11934)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2025-01-14 10:00:09 +00:00
Ayaan cb11ec3e01
Upgraded sass-loader to remove Sass warnings (#12728)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2025-01-14 08:44:47 +00:00
Tom Usher 75e07498f4 Add support for specifying an operator on Fuzzy queries (#12714) 2025-01-13 17:04:35 +00:00
Thibaud Colas d20c1b66bf release notes for #12751 2025-01-13 13:05:53 +00:00
Sage Abdullah da12f4a284 Use explicit label for defaulting to server language in account settings 2025-01-13 13:05:53 +00:00
Sage Abdullah 944fd02dc3 Replace l18n library with Intl-based LocaleController 2025-01-13 13:05:53 +00:00
Sage Abdullah 983a86b0b8 Fix missing heading and breadcrumbs in Account view 2025-01-13 13:05:53 +00:00
Thibaud Colas f0b04200a4 Add v6.3.3 release notes 2025-01-13 12:14:56 +00:00
Srishti-j18 c63ac0af4a
Add FilterField('created_at') to fix sorting by created_at when searching in documents index view 2025-01-13 12:12:09 +00:00
Srishti Jaiswal 0bba5da337
Correct positioning of comment buttons with DateField, TimeField and DateTimeField. Fix #12214 (#12685)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2025-01-13 12:08:56 +00:00
sag​e 99a9317eea
Avoid loading icons sprite and JS files in 404 page (#12745)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2025-01-13 11:29:17 +00:00
Joren Hammudoglu 4fc2c2abac
Improve deprecation warning for `WidgetWithScript` by raising it with `stacklevel=3` 2025-01-07 16:27:26 +00:00
Sage Abdullah 7a59c9cc20
Release note for #12735 2025-01-07 13:34:37 +00:00
Sage Abdullah 9b3acffaac
Fix crash when loading the dashboard with only the "bulk_delete" page permission 2025-01-07 12:23:26 +00:00
Unyime Emmanuel Udoh d8d75bddf0
Fix crash when loading the dashboard with only the "unlock" page permission 2025-01-07 12:03:11 +00:00
Matt Westcott 216b80111b
Upgrade consideration note for change of Page panel definitions 2025-01-07 11:05:11 +00:00
Matt Westcott 3f91fcb3a3
Define base Page panels as placeholders within wagtail.models
This ensures that code such as `content_panels = Page.content_panels + [...]` works as expected even if wagtail.admin has not been loaded.

Fixes #12747
2025-01-07 11:01:08 +00:00
Matt Westcott 09e26c3c2b
Add failing test for page model defined before wagtail.admin is loaded 2025-01-07 10:22:12 +00:00
Matt Westcott a2407c0027 Release note for #12697 2025-01-06 23:44:28 +00:00
Matt Westcott f9debd9084 Continuity fixes for tutorial 2025-01-06 23:11:53 +00:00
Matt Westcott 82c42d1ecc Nest code snippets for string panel definitions inside the note 2025-01-06 19:29:44 +00:00
USER 961aa07547 Addressed feedback: Updated FieldPanel documentation 2025-01-06 19:26:26 +00:00
USER da818b562f “Update-FieldPanel-documentation-to-encourage-use-of-strings-in-panel-definitions” 2025-01-06 19:26:26 +00:00
Matt Westcott 7cfae8c3b5 Update latest.txt for 6.3.2 2025-01-02 12:18:57 +00:00
Matt Westcott b97ac14cba Fill in release date for 6.3.2 2025-01-02 11:09:43 +00:00
Matt Westcott 50fb7b21bb Fetch new translations from Transifex 2025-01-02 11:09:17 +00:00
Daniel Kirkham 996484099b Insert missing space into 6.3 release notes 2025-01-02 09:16:49 +00:00
Artem Kamyshansky f90fae1aee typo fix 2025-01-02 09:16:07 +00:00
Matt Westcott 784f4bbbb9 Don't set aria-expanded=false on clear(), because clearing in itself doesn't close the menu 2024-12-19 14:10:30 +00:00
Ayaan 1cbb1e8fb2 Remove - extra addClass & aria-label in appendColumnButton and restore aria-expanded="false" in clear method 2024-12-19 13:23:24 +00:00
Ayaan df8a6f219c Added aria-expanded attribute to add new column button (#12680) 2024-12-18 18:03:24 +00:00
Matt Westcott 2e08d84332 Release note for #12702 in 6.4 2024-12-18 16:07:58 +00:00
Matt Westcott 5a17312e42 Release note for #12702 in 6.3.2 2024-12-18 16:07:25 +00:00
Matt Westcott 3cfbd028e9 Implement get_block_by_content_path on ImageBlock (#12702)
Fixes #12688. Without this, commenting on a field of an ImageBlock will cause subsequent loads of the edit view to fail at the point that the comments validate that they are attached to a valid block path.
2024-12-18 16:07:25 +00:00
Matt Westcott ac08838115 Update James Harrington's name in credits 2024-12-18 16:01:06 +00:00
ankit02327 7745aa628d Separate creation and activation steps in tutorial document (#12695) 2024-12-18 15:30:53 +00:00
Sage Abdullah 23b9f4aca9 Move images and documents get_usage().count() call to view code (#12691)
The get_usage() method returns a ReferenceGroups instance that defines a
__getitem__ method. Accessing get_usage().count() from the template
means that Django tries to access the count via ["count"], which fails,
then continues by using getattr(reference_groups, "count") before
finally calling the count method.

We have seen reports where the blocktranslate tag fails because the
usage_count_val is not a number. We haven't got a reproducible example,
but this would help surface any errors, as the exception would be raised
from the Python code rather than the template.
2024-12-18 14:58:28 +00:00
Jake Howard 57d141c701 Don't persist credentials in CI
There's no vulnerability here, especially since the token explicitly only has read access anyway, but it's worth improving regardless.
2024-12-18 14:37:54 +00:00
Sage Abdullah 6b33690cd3 Refactor pages revisions_revert view to be a subclass of EditView (#12690)
Currently, the code that handles the POST request for reverting a
revision lives in the EditView class, while the revisions_revert view is
a smaller view that tries to "mimic" the EditView for rendering the view
as part of a GET request. The view injects the revision ID into the
form, which has the action URL hardcoded to the EditView. Including the
revision ID in the form allows the EditView to tell whether it's in a
"reverting" mode or not, and adjust the POST logic accordingly.

However, this results in possible inconsistencies in both views.
Whenever we want to change EditView code or template, we need to make
sure to also update the revisions_revert view. The fact that the
revisions_revert view is a function-based view doesn't help.

Instead of copying the view code and reusing the template with the
addition of injecting the revision ID in the form, turn it into a proper
subclass of the EditView, and make use of Django's URL patterns to
retrieve the revision ID in the EditView.

This approach is similar to how reverting revisions is handled for
snippets.

Ideally, all the code for handling revisions revert should live in the
RevisionsRevertView, and the EditView shouldn't know about it at all.
This is how it's done for snippets: all the revisions revert-related
code is put in RevisionsRevertMixin.

However, this is currently not possible for pages without more
significant refactoring, so this commit does the minimal change needed
to achieve the goal of keeping the revisions_revert view in sync with
the EditView.
2024-12-18 14:36:39 +00:00
Matt Westcott 8bb2a18cd7 Release note for #12676 2024-12-18 12:55:43 +00:00
Sage Abdullah 130a9ebd93 Enable breadcrumbs by default 2024-12-18 12:52:31 +00:00
Sage Abdullah 58d9f9bc72 Make generic/confirm_unschedule.html template extend generic/base.html template 2024-12-18 12:52:31 +00:00
Sage Abdullah faa37c0068 Make generic/confirm_unpublish.html template extend generic/base.html template 2024-12-18 12:52:31 +00:00
Sage Abdullah e63b42b547
Add explicit path to Sphinx configuration in .readthedocs.yml 2024-12-18 11:34:31 +00:00
Sage Abdullah 286d7cbd6b Enable breadcrumbs in revisions compare view (#12675) 2024-12-18 00:45:43 +00:00