Wykres commitów

965 Commity (main)

Autor SHA1 Wiadomość Data
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
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
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 103ea61702
Document that request_or_site is optional on BaseGenericSetting.load 2025-03-20 19:11:19 +07:00
Matt Westcott 1f210831dd Relax model validation when saving pages as draft 2025-03-19 14:22:45 +00:00
smark-1 322d7e1620 Add documentation for setting the default privacy option on pages 2025-03-15 15:23:54 +10:00
Thibaud Colas 801b1bb067
Add more details of legacy rich text behavior
This is to hopefully make it easier to look up with search.
2025-02-06 16:34:49 +00:00
Aayushman Singh 4f37b011f5
Add WAGTAIL_ prefix to non-taggit settings 2025-02-04 10:34:25 +00:00
Sage Abdullah 251d1d188c Expand docs for StreamField block previews 2025-02-03 16:43:29 +00:00
Sage Abdullah f309a44075 Add reference docs for Block.get_template and Block.get_context 2025-02-03 16:43:29 +00:00
Matt Westcott 695ff86c87 Remove versionchanged note for ImageChooserBlock to ImageBlock migration
Leave other versionadded/versionchanged notes intact, as they relate to deprecated features that are not yet removed and should thus be left in place until 7.0.
2025-01-27 18:54:25 +00:00
LB 1dd3dbea87 Fix spelling of `CloudFront` in docs & release notes 2025-01-22 10:31:35 +00:00
LB 0bf909414a Fix minor whitespace formatting issues in docs 2025-01-22 10:31:35 +00:00
Sage Abdullah ac4bd79e40
Add initial docs for StreamField block previews 2025-01-20 17:35:06 +00:00
Matt Westcott 82c42d1ecc Nest code snippets for string panel definitions inside the note 2025-01-06 19:29:44 +00:00
USER da818b562f “Update-FieldPanel-documentation-to-encourage-use-of-strings-in-panel-definitions” 2025-01-06 19:26:26 +00:00
Claude Meyer aa08e86cba Fixes #3847 by adding page as a third argument to construct_wagtail_userbar hooks along with a deprecation warning. 2024-12-17 22:10:09 +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
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
Clifford Gama 7566fb84e0 Docs: Use sentence case for titles in pages/theory.md 2024-11-26 06:46:21 +10:00
Clifford Gama 8df6cae90c Docs: Break Scheduled Publishing into multiple subheadings 2024-11-26 06:38:26 +10:00
Andy Babic 66f1e817eb
Allow page types to easily restrict what type of requests they respond to (#12473)
* Allow page types to specify the request methods they support and block unsupported requests in serve()
* Use 'before_serve_page' hook to serve OPTIONS responses
* Add checks to RoutablePageMixin.serve() where the parent implementation is bypassed
* Rename check_http_method to check_request_method and actually use the return value
* Support Python 3.9 through to current approaches for `http` method strings
* Include documentation, docstrings & changelog entry
2024-11-20 10:15:36 +10:00
John-Scott Atlakson 9d31fd3fa5 Fix - Ensure `WagtailAdminFormPageForm.clean` returns `cleaned_data`
Return `cleaned_data` for more consistent subclassing.

Updated documentation with an example of adding custom page validation for form fields.

Add unit test to ensure that the documented usage of extending `WagtailAdminFormPageForm` works as expected.

Originally from #10375
2024-11-05 19:22:33 +00:00
minusf f600a356e6
Add missing apostrophe in settings documentation (#12542) 2024-11-05 16:09:55 +00:00
Sage Abdullah f54b03d595
Use intersphinx to link to treebeard docs 2024-11-05 10:44:41 +00:00
Sage Abdullah 503d1a743a
Replace hardcoded Python docs links with intersphinx 2024-11-05 10:44:40 +00:00
Sage Abdullah 5615deb5b1
Add Django's custom Sphinx roles and use them to link to settings
This is necessary for rST docs, i.e. in docstrings and in eval-rst
blocks. Without this, Sphinx cannot seem to understand the role. See:
https://stackoverflow.com/questions/13387125

MyST-Parser seems to be smarter, it can figure out these custom
roles without having to register the types ourselves. This is evident in
the previous commits where I already use the :setting: role in markdown
docs.
2024-11-05 10:44:40 +00:00
Sage Abdullah 9a5be8f180
Replace more hardcoded Django links with intersphinx in rST docs
Some link labels are changed to just the code part, because using Sphinx
roles for code objects (e.g. methods, attributes) would always format the
text as inline code.

It's currently impossible to customize the formatting of a link's text in
rST. See https://stackoverflow.com/questions/4743845
2024-11-05 10:44:39 +00:00
Sage Abdullah 857b26e5a0
Replace hardcoded Django docs links to intersphinx links 2024-11-05 10:44:39 +00:00
Aayushman Singh 7f6e7d4062 Docs - Improve hooks & extending pages with CSP compliant examples
- Avoid `mark_safe` and use `format_html` where possible
- Avoid inline scripts, instead ensure the example shows external script usage
2024-11-02 10:29:19 +10:00
Ayaan 0913118da4
Replaced Twitter references in the docs with more appropriate alternatives (#12516). Fix #12483
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2024-11-01 11:03:54 +00:00
Matt Westcott 593b95cad9
Document the ability to migrate from ImageChooserBlock to ImageBlock (#12518) 2024-11-01 09:58:42 +00:00
LB 3a5ae9c695 Docs - Ensure core models module level docstring does not appear in docs
Avoid the docstring being shared in the model reference documentation, this content is for core development only.
Update name of core modules.
2024-10-29 15:47:39 +00:00
Srishti-j18 fd9b1ca22b Docs - Update spelling to US customize variants
Fixes #12476
2024-10-29 18:47:43 +10:00
Srishti-j18 652de3fcb3 Documentation - Improve code highlighting & formatting for Python docstrings in core models 2024-10-28 08:34:38 +10:00
Andy Babic e451bbd96a Support application of select_related and prefetch_related lookups to subqueries made by SpecificIterable
- Add queryset methods to reference docs, and provide performance considerations for prefetch_related()
2024-10-28 08:06:03 +10: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
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
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 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
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
Coen van der Kamp abcb2da372 Add translatable model copy for translation done signal (#12362) 2024-09-27 16:01:52 +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
Sage Abdullah 706b95f670 Deprecate the WAGTAIL_AUTO_UPDATE_PREVIEW setting 2024-09-19 08:22:54 +10:00