Wykres commitów

3520 Commity (99a9317eea1a7b13a7fd9222a1f7f29e9096a4c2)

Autor SHA1 Wiadomość Data
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
Matt Westcott 216b80111b
Upgrade consideration note for change of Page panel definitions 2025-01-07 11:05:11 +00:00
Matt Westcott a2407c0027 Release note for #12697 2025-01-06 23:44:28 +00:00
Matt Westcott b97ac14cba Fill in release date for 6.3.2 2025-01-02 11:09:43 +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 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
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 286d7cbd6b Enable breadcrumbs in revisions compare view (#12675) 2024-12-18 00:45:43 +00:00
Claude Meyer 268174b781 Release notes for #12678 2024-12-17 22:10:23 +00:00
Jake Howard 076af8bec8 Automatically set CSP when serving images and documents (#12672)
Addresses #12617
2024-12-17 21:06:39 +00:00
jhrr 5402010d16 Allow hook override of user profile avatar url in admin tags (#12689)
Fixes #12661
2024-12-17 20:42:36 +00:00
Matt Westcott 9889bddcb8 Release notes for #11633 2024-12-10 01:54:54 +00:00
Sage Abdullah 4760509d65
Release note for #12681 2024-12-09 11:06:26 +00:00
Ayaan 3e75c018be Add support for query string params in WAGTAIL_GRAVATAR_PROVIDER_URL
- Enhance capabilities for WAGTAIL_GRAVATAR_PROVIDER_URL URL to support merging of URL params.
- Fixes #12659
- Rework of original PR #11077
2024-12-07 21:23:13 +10:00
Krystian Magdziarz 32417f9adc Fix Missing Cache-Control Headers for Password-Protected Pages (#12465)
Fixes #12455
2024-12-07 02:49:16 +00:00
Matt Westcott 94d3557cea Release note for #12614 2024-12-06 19:58:16 +00:00
Mauro Soche f177c02da8 Ensure the copy page form only allows choosing valid parents for the copy
Ensure the Page chooser disables the types of pages that do not follow the content hierarchy when trying to copy a page.

Fixes #11593
2024-12-06 15:07:32 +10:00
hsd2514 547e4d3731 Changing default value for Gravatar URL from ( mm -> mp )
- See https://docs.gravatar.com/api/avatars/images/#default-image
- Fixes #12658
2024-12-06 13:46:12 +10:00
Sage Abdullah 23275a4cef
Release note for #12643 2024-12-04 10:56:03 +00:00
Srishti-j18 c2676af857 Ensure new ListBlock instances get created with unique IDs
Fixes #10074
2024-12-04 19:10:04 +10:00
elhussein almasri cd7977ada8 Fix image/document chooser using `MultipleChooserPanel` within `InlinePanel`
Ensure `MultipleChooserPanel` using images or documents work when nested within an `InlinePanel` when no other choosers are in use within the model.

Fixes #11233
2024-12-04 18:35:32 +10:00
Jaivignesh-afk 13951cf7a5 Fix empty `th` elements in admin (accessibility)
- Headings cannot be empty (https://dequeuniversity.com/rules/axe/4.9/empty-table-header)
- Added aria-hidden=true or a suitable label to empty <th> across admin
- Fixes #11596
- Additional related fixes provided in #12203 & #11465
2024-12-04 12:50:13 +10:00
SebCorbin fceda14872 Use openpyxl at runtime
- See discussion 'import openpyxl' #12125
- Projects that don't use ReportView (or SpreadsheetExportMixin) and wagtail.contrib.redirects should see a memory use decrease
2024-12-04 08:49:13 +10:00
LB bc34020e0d Docs - Ensure documents overview section renders Django template syntax 2024-12-04 08:48:45 +10:00
LB 233ff2b419 Add docs contributor Alex Fulcher for #12039 2024-12-04 08:13:01 +10:00
Sævar Öfjörð Magnússon 8ec4ed0127 Incorporate 'are we headless' content into documentation
- API chapters from https://areweheadlessyet.wagtail.org/
2024-12-04 08:10:15 +10:00
Matt Westcott 6047a66663 Allow using plain strings in panel definitions in place of FieldPanel / InlinePanel (#12557) 2024-12-03 19:50:07 +00:00
Srishti-j18 6054245548 Remove unused `is_active` & `active_menu_items` from `wagtail.admin.menu.MenuItem`
These methods are no longer utilized in the codebase and have been superseded by JavaScript-based handling of active menu items. Specifically, the sidebar-menu-item--active class, responsible for theming active menu items via CSS, is now exclusively managed by JavaScript.

Cleaned up the related test from wgatail.admin.tests.tests.py : wagtail.admin.tests.tests.TestMenuItem.test_menuitem_reverse_lazy_url_pass

Fixes #11433
2024-12-03 08:26:38 +10:00
LB 585b9b4b04 Add changelog for #12641 2024-12-03 07:53:40 +10:00
LB 3a19f450f6 Fixup changelog typo 2024-12-03 07:53:40 +10:00
LB 26442631c7 Add changelog for #11202 2024-12-03 07:15:09 +10:00
Sage Abdullah f8f99833f2 Refactor settings EditView to make better use of generic EditView (#12635) 2024-12-02 15:18:09 +00:00
Matt Westcott b81b899c0c credit Sage on search term report 2024-12-02 15:02:39 +00:00
Clifford Gama a1de5bdbd7 Introduce tags and filters as they are in user-guide docs (#12647) 2024-12-02 12:07:48 +00:00
Sage Abdullah 839193ff3c Remove unused LinkController
See #11736
2024-11-29 18:17:00 +10:00
Sage Abdullah b7a4271930
Move release note for #12570 to 6.3.2 2024-11-28 10:06:16 +00:00
Bartosz Cieliński 5815a7e1ef Ensure Draftail features wrap in case there is a lot of added features 2024-11-28 08:11:12 +10:00
Strapchay b3ba89b2ec Fix commenting not working on pages with read_only FieldPanels
Fixes #11838
2024-11-28 07:12:54 +10:00
ankit02327 79c9ce266c Update community guidelines link in first contribution guide 2024-11-28 06:55:39 +10:00
LB f5a08646c9 Add changelog for #12579 2024-11-27 20:34:42 +10:00
Matt Westcott 836b8138d3 Prevent generic model edit view from unquoting non-integer primary keys multiple times
Fixes #12599
2024-11-27 20:11:52 +10:00
Srishti-j18 ffe294bc7b Added unit tests, storybook & JSDoc items for DrilldownController
Fixes #12511
2024-11-27 19:29:10 +10:00
Matt Westcott 8026108fa4 Update Noah van der Meer's name in contributors 2024-11-26 15:39:26 +00:00