Wykres commitów

18661 Commity (3b1bed811f1499695a11ad0c461176a1f06f80bc)

Autor SHA1 Wiadomość Data
Sage Abdullah 3b1bed811f
Update CircleCI config to use pyproject.toml 2025-04-10 10:30:33 +07:00
Sage Abdullah ca7e9bd65a
Update editable installation instruction to use editable_mode=strict
Avoid "module not found" errors on VSCode
https://microsoft.github.io/pyright/#/import-resolution?id=editable-installs
2025-04-10 10:30:33 +07:00
Sage Abdullah 136e0a8461
Add funding link in project.urls in pyproject.toml 2025-04-10 10:30:32 +07:00
Sage Abdullah b27deeaaa9
Update doc8 to latest
Support for loading config from pyproject.toml was added in 0.9.0

https://github.com/PyCQA/doc8/releases/tag/0.9.0
2025-04-10 10:30:32 +07:00
Sage Abdullah d9a09a7442
Migrate setup.py and setup.cfg to pyproject.toml
Move the custom sdist command from wagtail/utils/setup.py directly to
setup.py, because we cannot import the wagtail package itself during
the build process without installing it in the build environment.
2025-04-10 10:30:32 +07:00
Sage Abdullah 4b990df86a
Remove unused setuptools cmdclass customisations
We no longer publish any NPM package from this repository. There is no
package.json in the "client" directory, and we do not include anything
in the "client" directory in the final package either.

The bdist_egg command is deprecated in favour of wheels. We don't
distribute eggs, so the custom version with the static assets check is
not relevant.
2025-04-10 01:41:15 +07:00
Sylvain Boissel cfda3a6ad2 Add missing apps.py file (#13001) 2025-04-09 19:19:15 +01:00
Sage Abdullah f3e2084b3a Document snippets requirement for features provided by model mixins (#12999) 2025-04-09 15:50:49 +01:00
Sage Abdullah a3352a8676 Ensure reference index uses pk instead of id for references in inline objects (#12983)
Fixes #12426

Fixes an issue with models that use a custom primary key with a different name than 'id'
2025-04-09 12:48:40 +01:00
Sage Abdullah 32f4a78c96 Use tuple to define UniqueConstraint fields in CustomRendition test model
Avoid spurious migrations when the set order is different on evaluation
2025-04-09 12:40:35 +01:00
LB 5b429e24d6 Ensure `insert_editor_js` documentation reflects common usage (#13022)
Fixes #13021
Relates to #2936
2025-04-09 12:14:10 +01:00
dependabot[bot] 8a9d05eef5 Bump tar-fs from 3.0.6 to 3.0.8 in /client/tests/integration
Bumps [tar-fs](https://github.com/mafintosh/tar-fs) from 3.0.6 to 3.0.8.
- [Commits](https://github.com/mafintosh/tar-fs/compare/v3.0.6...v3.0.8)

---
updated-dependencies:
- dependency-name: tar-fs
  dependency-version: 3.0.8
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-06 17:03:22 +10:00
Baptiste Mispelon c6c996b54c Make all formbuilder field types accept a custom widget + add docs
Prior to this change, it was inconsistent whether passing
a `widget` argument as an option to a create_<field>_field()
method would work or not (it might work, or might result in a
TypeError caused by the duplicate argument).
2025-04-06 17:03:14 +10:00
smark-1 c4922ccd39 Fix privacy collection status label for children of private collections
Fixes #12972
2025-04-06 15:46:45 +10:00
LB 273d231992 Add changelog & contributors entry #12968 2025-04-06 15:39:13 +10:00
Dhruvi Patel 32ec338538 Add comments keyboard shortcuts to the shortcut dialog 2025-04-06 15:39:13 +10:00
Dhruvi Patel 9fe5987549 Refactor `keyboard_shortcuts_dialog` template tag to be easier to maintain
- Split out core shortcut modifiers to a `get_keyboard_key_labels_from_request` util + add tests
- Added key label mapping in admin/utils, refactored code for keyboard shortcut dialog and updated tests
- Updated key label mapping for MOD in admin/utils, updated code for keyboard shortcut dialog and updated tests
2025-04-06 15:39:13 +10:00
SebCorbin 5c30b4211a Support documented ability to override/extend icons in the userbar
Allow to override icons in userbar
2025-04-06 14:57:11 +10:00
LB c663911b9c Minor cleanup to documentation whitespace formatting 2025-04-06 14:32:00 +10:00
dependabot[bot] 730ce4c092 Bump tar-fs from 2.1.1 to 2.1.2
Bumps [tar-fs](https://github.com/mafintosh/tar-fs) from 2.1.1 to 2.1.2.
- [Commits](https://github.com/mafintosh/tar-fs/compare/v2.1.1...v2.1.2)

---
updated-dependencies:
- dependency-name: tar-fs
  dependency-version: 2.1.2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-06 12:32:00 +10:00
Matt Westcott 8054801f3e Release notes for #13015 2025-04-04 15:35:02 +01:00
Matt Westcott 934aa79789 Remove upper bound of Django dependency
As per #12574 - fixes #13012
2025-04-03 20:34:11 +01:00
Matt Westcott 014f6b2b35 Formalize support for Django 5.2 2025-04-03 20:33:55 +01:00
LB 46c7c60b49 Add changelog & release considerations #12882 2025-04-03 12:19:54 +10:00
the-r3aper7 9f04de83d5 Remove shared admin imports from `_editor_js.html` & remove unnecessary usage
- Fixes #2936
- Deprecate the usage of _editor_js.html
2025-04-03 12:19:54 +10:00
Srishti-j18 97975b5293 Increase the gap of columns within row fields for comment button #12806 2025-04-02 08:35:40 +10:00
Srishti-j18 cc345cff54 Fix comment button positioning next to fields #12807
- Fixes #12687
- Fields fixed; radio checkbox, radio, multi checkbox, select
2025-04-02 06:36:22 +10:00
Matt Westcott edf7c66fac Mention third-party StreamField form builder packages in form builder docs
As per https://github.com/wagtail/wagtail/pull/12287#issuecomment-2769692508
2025-04-02 06:17:47 +10:00
Matt Westcott db3a695695
Ensure ImproperlyConfigured is thrown from db_field on unbound FieldPanels as intended
Since the refactor of the base panel class in b599fce714, self.model is always defined (initially as None) so the ImproperlyConfigured exception would never be thrown.
2025-03-27 13:57:02 +07:00
Matt Westcott 125a749a9a Defer validation of min_num constraints on InlinePanel when saving drafts 2025-03-25 09:17:37 +00:00
Matt Westcott d0f28a1a69 Defer validation of required fields in InlinePanel when saving drafts 2025-03-25 09:17:37 +00:00
Matt Westcott 39e4db4e39 Release note for #12976 2025-03-24 20:25:44 +00:00
Sage Abdullah 5c97298e15 Use underscore-separated keys in setup.cfg for setuptools >= v78 2025-03-24 20:08:30 +00:00
Sage Abdullah 45f89a335d Use WagtailAdminModelForm as the base for RedirectForm and SearchPromotionForm 2025-03-24 20:08:30 +00:00
Sage Abdullah 2fbf6b5f06 Remove FORMS_URLFIELD_ASSUME_HTTPS stop-gap in CI tests 2025-03-24 20:08:30 +00:00
Sage Abdullah 7b5d772b21 Avoid deprecation warnings about URLField assume_scheme on Django 5.x 2025-03-24 20:08:30 +00:00
Sébastien Corbin 6a7917697c
Fix typo in preview blocks documentation 2025-03-24 10:01:52 +01:00
Sage Abdullah d3341e8fa7 Make title and slug optional in page previews 2025-03-21 17:47:27 +00:00
Sage Abdullah 9eac93a565 Defer validation of required text fields in previews 2025-03-21 17:47:27 +00:00
Sage Abdullah 6b40a38346 Ignore AVIF deprecation in pillow-heif
A stop-gap until https://github.com/wagtail/Willow/issues/166 is resolved
2025-03-21 16:47:17 +00:00
Jake Howard 8faa15175c
Make GitHub highlight html files as Django templates
Shamelessly stolen from https://github.com/django/django/pull/19279
2025-03-21 23:20:06 +07:00
Matt Westcott 103ea61702
Document that request_or_site is optional on BaseGenericSetting.load 2025-03-20 19:11:19 +07:00
Matt Westcott 68a3bd4725 Ignore minimum block_counts constraints when deferring validation 2025-03-19 18:27:09 +00:00
Matt Westcott 6938786444 Ignore min_num constraints when deferring validation 2025-03-19 18:27:09 +00:00
Matt Westcott 6d01356ec6 Rework deferring validation on StreamField
Overwriting a block's `required` option is not safe, as a block object is part of a class-level definition and is thus shared by all block instances, not just the one currently being validated. Instead, introduce a flag to Block.clean to skip 'required' validation.
2025-03-19 18:27:09 +00:00
Matt Westcott c38db51559 Add versionchanged note for new Page.save validation 2025-03-19 14:22:45 +00:00
Matt Westcott 04a174f0f2 Make get_latest_str fallback translatable 2025-03-19 14:22:45 +00:00
Matt Westcott 6a0bd93e5b Add an empty_value_display property on Column for use when value is blank
This surfaces an issue with SearchPromotion having a broken string representation when the query string is None, so fix that too
2025-03-19 14:22:45 +00:00
Matt Westcott 397edf2ec5 Support deferring validation on StreamField 2025-03-19 14:22:45 +00:00
Matt Westcott 5015eddef3 Preserve required asterisks on validation-deferred fields when re-showing form after an error 2025-03-19 14:22:45 +00:00