Wykres commitów

73 Commity (585b9b4b048b433a840e12454410109e85db232e)

Autor SHA1 Wiadomość Data
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
LB dddac974d2 Add changelog #12535 2024-11-26 08:23:33 +10:00
joelwilliam2005 dd4b40d467 Show the correct privacy status in the sidebar when creating a new page
Fixes #12277
2024-11-26 07:47:21 +10: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
Sage Abdullah 6b84e93259 Link to HTTPMethod in Page.handle_options_request() docs 2024-11-26 06:32:45 +10:00
LB cc335cad5f
Reinstate modal-workflow self.ajaxifyForm & add unit tests
- Fixes #12618
- Regression from #12380
2024-11-22 16:14:32 +00:00
Matt Westcott 9cacfe0dc2 Release note for #12612 2024-11-22 16:13:35 +00:00
Matt Westcott f9e4e10fce Release note for #12608 in 6.4 2024-11-22 12:30:03 +00:00
Jake Howard 6b44838841 Use correct connection when searching (#12508)
- Use the indexes preferred DB, not the indexing model
- Use write connections for writes, and reads for reads
2024-11-22 10:23:26 +00:00
Clifford Gama 7aeadde451 Update tutorial instructions to use icon for adding children pages
- Reflects changes added in #11012
2024-11-22 17:16:03 +10:00
Matt Westcott 09a9261f7d Add release note for #12341 2024-11-21 18:37:24 +00:00
Matt Westcott 252ca973d3 Release note for #12566 2024-11-21 18:00:54 +00:00
LB 57f7abda43 Add a changelog entry for #12569
Fixes #12563
2024-11-20 16:31:49 +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
LB 3697ee1f2a Eslint - fix location of storybook folder & remove eslint ignore 2024-11-20 07:52:43 +10:00
LB acd2c535f6 Remove canvas-to-blob polyfill
Historic recommendation for jQuery image upload before all browsers supported `canvas.toBlob`.

All modern browsers supported by Wagtail have had support for this for many years now.

- See https://caniuse.com/?search=toblob
- See https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toBlob
2024-11-20 07:46:40 +10:00
helloshiv f0d3edfad6
Fix wagtailcache and wagtailpagecache examples to not use quotes for the fragment_name 2024-11-19 14:18:17 +00:00
Thibaud Colas cd8c19d762 Rename tutorial blog index page to reduce the likelihood of slug issues (#12576) 2024-11-15 16:24:52 +00:00
Clifford Gama 9509d6409f Clarify get_context() usage in BlogTagIndexPage example (#12573) 2024-11-15 16:21:10 +00:00
Matt Westcott e7dd00e427 Ensure that creation of image/document choose permissions happens after access_admin permission exists
As per https://github.com/wagtail/wagtail/issues/12581#issuecomment-2478983521.
Fixes #12581
2024-11-15 16:18:20 +00:00
Sage Abdullah 5eca192bd2
Release note for #12564 2024-11-13 16:30:50 +00:00
Matt Westcott 5212061485
Normalize StreamField.get_default to prevent creation forms from breaking
Fixes #12561

When a ModelForm is constructed without passing an `initial` instance, the result of `StreamField.get_default()` will become the default value of the form field without the intermediate step of being set on a model instance and read back (which would have the side effect of calling `normalize()`). Form rendering only works with normalized values (e.g. StreamValue rather than list-of-tuples for a StreamBlock), so the return value from `get_default()` needs to be normalized.
2024-11-13 15:46:07 +00:00
Sage Abdullah 210f35f7ec
Release note for #12556 2024-11-13 14:20:10 +00:00
Matt Westcott aa31d329ab
Stop invalid Site hostname records from breaking preview
As made famous by https://youtu.be/v3KEaMTfKg0?t=319 :-)

By design, Wagtail tolerates the default Site record being left at its default value of 'localhost' up to a certain point. Ideally, that point should be when it becomes strictly necessary for Wagtail to care about hostnames (such as when setting up the second site of a multi-site installation) and it should be clear to the developer what has happened and how to fix it.

In practice, that point often comes when the developer deploys their site to production, sets `DEBUG=False`, and is then required by Django to set `ALLOWED_HOSTS` to their real domain name. At this point, front-end page requests work (because the initial site record is default=True, matching any domain including the live one) but previews are broken (because the dummy request object is still formed using localhost as per the site's hostname field, which is disallowed by ALLOWED_HOSTS).

This is unnecessary, and can be avoided by validating the hostname against ALLOWED_HOSTS and substituting one that _is_ allowed if necessary, as we already do for pages that don't have an associated site record.
2024-11-13 13:57:14 +00:00
Sage Abdullah 6315d3c1cc
Release note for #12551 2024-11-12 10:59:57 +00:00
Matt Westcott e7e57cd29e Release note for #12488 2024-11-05 22:36:43 +00:00
ayaan-qadri b0c90d4be2 Removed preventDefault from openPreviewInNewTab in PreviewController
Relates to #10356
2024-11-06 07:47:10 +10:00
LB 825a77d6c2 Remove all eslint-disable no-undef & use global comments (#12527)
Recommendation is to either declare globals in config or in a `/* global ` comment
See https://eslint.org/docs/latest/rules/no-undef#rule-details
2024-11-05 20:11:09 +00:00
LB cae3229716 Remove unnecessary DOM Range polyfill (#12496)
- Remove DOM Range polyfill provided by https://developer.mozilla.org/en-US/docs/Web/API/Range
- All Wagtail supported browsers, as of a few years ago, have built in support for `document.createRange`, see https://developer.mozilla.org/en-US/docs/Web/API/Range
2024-11-05 20:01:31 +00:00
Matt Westcott 3013673c55 Release notes for #12480 2024-11-05 19:48:24 +00:00
Sage Abdullah f21f6dd884
Release note for #12525 2024-11-05 12:56:59 +00:00
Jake Howard 71c93cb39c Remove non-unsert support for Postgres indexing (#12509)
PostgreSQL 9.4 support was dropped with the release of Django 3.0.
2024-11-04 18:19:29 +00:00
rahulsamant37 5e4c3f12c3 Remove defunct oEmbed providers (#12537)
Fixes #12054
2024-11-04 18:04:33 +00:00
Matt Westcott 0cab6641cc Release note for #12539 2024-11-04 15:40:44 +00:00
LB 21206dc3e7 Clean up JS comments to be aligned to JSDoc where suitable 2024-11-04 21:14:04 +10:00