Wykres commitów

3652 Commity (3a9a2815c0953aa7d4d6e9b5f0fbeae677d027c7)

Autor SHA1 Wiadomość Data
LB Johnston 3ef14c0d62 fix typo in changelog 2021-10-04 19:53:29 +10:00
Nick Smith 781c2d14d3 Add How-To instructions for landing-page redirects
This uses both the forms and routable_page contrib modules to redirect
without using a separate landing page.
2021-10-04 14:12:28 +10:00
Matt Westcott 37e19c3d71 Fix link to node.js download
https://nodejs.org/download/ just points to a directory listing now; the download link is now on the https://nodejs.org/ homepage, and there are no instructions to speak of.
2021-10-02 12:52:47 +10:00
Matt Westcott 6cb463dd41 Document the new 'log' method 2021-10-01 16:30:05 +01:00
Matt Westcott f8e7a049c0 Release note for #7540 2021-10-01 16:28:20 +01:00
Coen van der Kamp f1175658bc Add release note about default Dutch (nl) 2021-10-01 13:19:39 +01:00
LB Johnston a8636781b0 release notes for #7554 & #7545
- #7554 & #7545
2021-10-01 07:23:53 +10:00
Daniel 381b11f54f Include custom permissions hook documentation 2021-10-01 06:52:43 +10:00
Matt Westcott 1b9dfc81ba Add section about CSV exports to security docs
Security researchers frequently report CSV formula injection as a security vulnerability in Wagtail, but that's the responsibility of the software consuming the CSV, not creating it. Hopefully this explanation will stop them from doing that (or at least give us a ready-made response to point at when they do).
2021-10-01 06:38:32 +10:00
Joe Howard 4ab7080fb8 Documentation - Remove ambiguity about ModelAdmin templates
- The modeladmin folder needs to be inside the templates folder of the relevant app.
- The way it was written makes it seem like /modeladmin/ should be placed in the project root directory.
2021-09-30 21:32:57 +10:00
JaneLiu 92381698d0 Add code example for `before_delete_page` hook 2021-09-30 21:15:33 +10:00
Fabien Le Frapper cbd7b028d5 images - move shared file handling methods to mixins
- add ImageFileMixin to house contextmanager (file opening & willow image handling) + is_stored_locally method
- use mixin in AbstractImage & AbstractRendition
2021-09-30 19:11:37 +10:00
Matt Westcott 81f8f99215 Link to Github discussion boards 2021-09-30 19:00:18 +10:00
Kamil Marut 8d42bec5e6 Add "other permissions" to group permissions
- instead of a separate table containing all discrete permissions for each object, show these in the object's table
- Wagtail admin access will still show inside 'other permissions'
- resolves #5482
2021-09-30 18:54:46 +10:00
Desaiakshata 997ac738b0 dropdown - improve focus and high contrast mode visibility
- Update _dropdown.legacy.scss
- improvement to existing styles for dropdown/up button on focus and windows high contrast mode
- see #7366
2021-09-30 08:12:00 +10:00
Karl Hobley 607d356076 Changelog / release note for #7548 2021-09-29 12:02:59 +01:00
Mitchel Cabuloy d026632894
Add page synchronization to simple_translation 2021-09-29 11:43:45 +01:00
Stefan Hammer f533726de3 Add missing bind_to call to PreviewOnEdit
Added test for page preview with custom edit handlers
fixes #7537
2021-09-28 08:17:59 +10:00
Matt Westcott 3b972775fc Deprecate passing callables as log messages 2021-09-27 19:54:25 +01:00
Matt Westcott 0380f01b24 Allow specifying a format for the label of a collapsed StructBlock
Currently, the label shown for a StructBlock's collapsed representation takes its content from the first sub-block of the StructBlock, which isn't always what you want. Add a new `label_format` meta option to StructBlock to allow customising this - e.g. `label_format = "Profile for {first_name} {surname}"`
2021-09-27 19:07:14 +01:00
Scott Cranfill 27c3e7921a Docs: Clarify Jinja2 template configuration
Emphasizing and clarifying some parts that are easy to overlook, based on a Slack support conversation.
2021-09-26 20:48:28 +10:00
Victor Miti f59658c6ca Adding Notifications docs - update sample code
Update sample code in the section
Extending Wagtail -> Adding new Task types -> Adding notifications

The previous example did not work because of changes in
`wagtail.admin.mail`

`EmailNotifier` doesn't exist, so we need to import
`EmailNotificationMixin` and `Notifier` instead, and
update `BaseUserApprovalTaskStateEmailNotifier`
accordingly
2021-09-26 20:46:29 +10:00
Victor Miti bb802509d2 Model Reference docs - correct field name
change `page revision` to `page_revision`
on the `TaskState` model
2021-09-26 20:46:29 +10:00
Wout De Puysseleir 348aec32e5 Add TIDAL support to oembed
Adds TIDAL support for embedding playlists/tracks
2021-09-26 20:17:51 +10:00
Storm Heg 19ad01ddd5 Fix userbar tabbing behaviour
Tabbing (navigation using Tab or Shift + Tab keys) will now close
the menu and move to the next focusable element on the page instead
of focusing the next menu item.

The previous behaviour was a deviation from the ARIA menu practices:
https://w3c.github.io/aria-practices/#menu

Further changes / cleanup:

* Consume keyboard events like arrow down to prevent the browser
  from interpreting them.
* Refactor repeated setTimeout and `.focus()` calls into single
  `focusElement(el)` function. Let's keep it DRY!

Fixes #7290
2021-09-19 14:46:28 +10:00
amychan331@yahoo.com 218e728f34 Make hamburger menu a button for tab accessibility
- Adding type to button element
- Co-authored-by: Dan Braghis <dan@zerolab.org>
- fixes #7327
2021-09-19 14:18:34 +10:00
Andrew Stone 55950a3586 Use date format from current locale for xlsx export 2021-09-19 13:57:29 +10:00
Matt Westcott 2f518eb147 Use gettext_lazy in modeladmin views where required
Class-level strings were using gettext, which meant that they were not respecting user language settings.
2021-09-18 21:25:41 +10:00
Dan Braghis a87acf5b17 Fix page history with deleted user 2021-09-18 21:17:26 +10:00
LB Johnston d949946434 fix warning message for disabling workflow task
- show the states_in_progress number based on the current Task only, not all tasks
- fixes #7492
2021-09-14 19:34:03 +10:00
bwilliams3 fb4a5a6961 Send notifications to active users only 2021-09-11 14:16:48 +10:00
Andrew Stone 7d9e90fdbd Ensure admin tab events are handled on page load
The `shown.bs.tab` event was being bound after showTab() was already
called, so on page load, the tabs weren't being updated correctly.
2021-09-10 07:06:59 +10:00
LB Johnston eba4ac1563 add release notes for #7489 2021-09-10 07:01:37 +10:00
Krzysztof Jeziorny cf064f2b99 Fix width on comment notifications dropdown
- Other languages' word can break the dropdown's layout
2021-09-07 20:54:43 +10:00
Sagar Agarwal 592408ac3d Remove target: _blank from 'view live' and 'view draft'
- Change new_window=True to False for 'view live' and 'view draft'
- fixes #6123
2021-09-07 20:43:33 +10:00
Jake Howard 4dc2967d26 Settings docs - remove duplicate word 2021-09-07 20:23:11 +10:00
Desaiakshata 22cdd89b68 Fix Window high contrast mode - tag field
-edit background color for form input field-forced color mode
2021-09-07 20:11:00 +10:00
Tibor Leupold 9ae4ab6084 Document how to limit a page parent to root
Closes #2768

Issue #2768 was created because a way how to limit a page to be only
available under the root page was unknown.

The implementation has allowed this for a while now, but the issue was
not closed (presumably due to missing documentation).

The documentation of the `parent_page_types` filed now includes this
"special" case.
2021-09-07 09:52:33 +01:00
Justin Slay 85faf19211 Change initial value of publish_copies to False 2021-09-01 17:47:12 +10:00
FDGod99 c2347a6d35 fix - high-contrast mode - sidebar needs visual separation
- Due to how high-contrast mode works, there was no visual separation between the sidebar and the main content, adding a transparent border resolves this without having any visual impact in non-high contrast mode
- fixes #7456
2021-09-01 08:02:42 +10:00
Matt Westcott 7f27e0abbc Support calling get_image_model and get_document_model at import time
Attempting to call get_image_model or get_document_model at the top level of a models.py file currently fails with "Models aren't loaded yet". This can be avoided by passing `require_ready=False` to apps.get_model.

This change makes it possible for third-party apps to define abstract models with foreign key references to the possibly-custom image or document model (which can then be subclassed into concrete models in the project itself - defining concrete models in the third-party app probably still isn't safe, as the model will end up being baked into the third-party app's migrations).
2021-08-31 21:15:12 +10:00
LB Johnston d43c203c29 add release notes for #7480 & #7474 2021-08-31 21:06:37 +10:00
Alex Tomkins 9812d606a9 Add a style fallback to avoid invalid inline styles
- fixes #7387
2021-08-31 21:02:43 +10:00
Gordon Pendleton b6c172cf20 Allow html in multi image upload errors
- fixes #6824
2021-08-31 20:45:36 +10:00
Matt Westcott f8f7f543b3
Update contributing docs to specify Node 14 2021-08-31 10:32:40 +01:00
infinityplusone 5f3207ca43 add object count to modeladmin header listing view 2021-08-31 11:53:34 +10:00
Chris 5593b8b42e Fix: Update elasticsearch path in documentation
New location: https://github.com/wagtail/wagtail/blob/main/wagtail/search/backends/elasticsearch7.py
2021-08-31 11:29:56 +10:00
fabienheureux cb08c997ea
Make all edit panels collapsible (#7365)
* Make more panels type collapsible
* Remove duplicate js in homepage template
* Move collapsible code into its own js file
* Change $li to $target in collapsible.js, as in #6342

Closes #7364, #6342, #6187, #2123

Co-authored by: Fabien Le Frapper <contact@fabienlefrapper.me>
Co-authored-by: Robbie Mackay <rm@robbiemackay.com>
Co-authored-by: Scott Cranfill <scott.cranfill@jpl.nasa.gov>
2021-08-30 08:33:43 -07:00
Chakita b5abd8b155 High-contrast mode: restored vertical separation between field panels
- fixes #7455
2021-08-30 20:10:15 +10:00
Stefan Hammer 22a35b70d2 Fix home icon in breadcrumbs for limited-permission users, fixes #7348
- The html has just been synced with the html for unlimited users
2021-08-30 19:56:17 +10:00
amychan331@yahoo.com f1b3bbc52f Update form label css to be readable by screen reader
- login screen
2021-08-30 19:12:22 +10:00
LB Johnston 5d2794b932 add release note for #7381 2021-08-25 07:38:44 +10:00
Matt Westcott c919d4c3b3 release note for #7425 2021-08-24 15:57:03 +01:00
Matt Westcott 1d5c696785 double backticks 2021-08-24 15:55:17 +01:00
Matt Westcott 1155373d72 "simplest way" -> "preferred way" 2021-08-24 15:42:04 +01:00
Matt Westcott e777517950 Update docs on action menu items to cover new API 2021-08-24 15:42:04 +01:00
Matt Westcott 83d24c8346 Link to release notes from deprecation warnings 2021-08-24 15:42:04 +01:00
Matt Westcott 1ad6f3518c Update docs to cover use of components in homepage panels / summary items 2021-08-24 15:42:04 +01:00
Matt Westcott 428c4c7a3f Documentation for template components 2021-08-24 15:42:04 +01:00
Seb a9f13d2dfb Apply list styles for MultipleChoceFields 2021-08-24 08:34:40 +10:00
LB Johnston 1b50c74424 add release notes for #7209 #7251 #7446 2021-08-23 20:46:09 +10:00
Dmitrii Faiazov fb66c1fd17 Styling for Windows high contrast
- add media queries for icons & logos
- fix issue with color problems
2021-08-23 20:15:08 +10:00
dex 415c74b892 Updated the formatting of the bullets
We also need to update the screenshot so it matches the new description. Not sure how to do that.
2021-08-20 17:10:55 +01:00
Andy Chosak e9e1a48b68 Fix broken references in Pages topic documentation
The "Page models" documentation page in the Wagtail usage guide has
several broken links (see current page at
https://docs.wagtail.io/en/stable/topics/pages.html).

These links work when developing the documentation locally, but not when
served on ReadTheDocs (docs.wagtail.io)

The broken links are all of the form /some/page.html#anchor - somehow
this format doesn't translate properly to get the necessary RTD prefix
(for example /en/stable/).

I've modified these links to use RST references, which will also make
them more robust to future changes.
2021-08-20 17:08:35 +01:00
Andy Chosak b349ba436e Add missing args/kwargs to Page documentation
Documentation examples of `Page.get_context` and `Page.get_template`
lack `*args` and `**kwargs` parameters (which were added way back in
8c4c268641).

This commit adds those missing parameters.
2021-08-19 19:31:07 +01:00
Alex Tomkins c825261bd1 Fix session key generation for wagtail previews (#7393)
Fixes #7392
2021-08-19 19:29:08 +01:00
Jake Howard 90c86e76d0 Add a debug logger around rendition generation (#7391)
This allows insight into which images are taking the longest to generate, which fail to render at all, and potentially which images are causing crashes (as in they start, but never stop).

The logging is intentionally only on DEBUG level, so it's opt-in, and is also reasonably quiet so it doesn't bloat logs.
2021-08-19 19:00:13 +01:00
LB Johnston 8d36168c5c documentation - add third party tutorials from late 2020 to now 2021-08-19 18:53:20 +01:00
Jannis Vajen fd42d192c9 Fix typo in StructBlock documentation
The StructValue class `LinkValue` is refrerenced as `LinkStructValue` in the Meta class.
2021-08-19 14:48:16 +01:00
DeviousLab 2d741386c4 Add publish instructions for child pages in tutorial #7430
Added extra instruction to publish a blog post rather than save as a draft for the overriding section.
2021-08-13 17:30:51 +01:00
Matt Westcott 470d5510d4 Release note for #7416 in 2.14.1 2021-08-12 15:07:39 +01:00
Matt Westcott 9dc43e0374 Release note for #7427 in 2.14.1 2021-08-12 15:07:25 +01:00
jacobtoppm 1efbfd4994 Release note and CHANGELOG for #7376 2021-08-11 17:56:02 +01:00
jacobtoppm 7bf3f813ef Add link conversion configuration setting 2021-08-11 11:52:29 +01:00
Saptak Sengupta 99aead848e
Makes the title of ModelAdmin items into links (#7408)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2021-08-08 01:00:25 +01:00
Karl Hobley 8413d00bdd Spelling fixes 2021-08-06 20:11:30 +01:00
Matt Westcott 07402a545a Tiny cleanup for site root page chooser (#7407)
* Pulling in _editor_js.html is unnecessary - the only JS dependency that isn't in form media is now modal_workflow.js. (So close to being able to ditch the template override entirely!)
* Omit the 'clear' button, as this is a required field.
2021-08-06 10:57:42 +01:00
Matt Westcott 49c5578b90 Release note for #7367 2021-08-03 19:56:07 +01:00
Matt Westcott 8588acc043 Add screenshots 2021-08-03 16:07:18 +01:00
Matt Westcott f2f7413d55 Add a basic howto on creating custom admin views 2021-08-03 16:07:18 +01:00
Matt Westcott 83717829bb Add intro text for Extending Wagtail section 2021-08-03 16:07:18 +01:00
Matt Westcott ee8af13adf Remove 'How to...' from page titles for consistency
These were previously added at Daniele Procida's recommendation so that 'how to' pages could easily be identified in a future reorganisation that splits them out from other modes of documentation. Since 'Extending Wagtail' as a whole is expressly a 'how to' section, this is no longer required.
2021-08-03 16:07:18 +01:00
Matt Westcott 4e2685f47d Add an 'Extending Wagtail' section to the docs 2021-08-03 16:07:18 +01:00
Matt Westcott d709e610af Fill in release date for 2.14 2021-08-02 14:01:40 +01:00
Karl Hobley beeb6066ad Changelog / release note for #6843 2021-07-30 11:22:59 +01:00
Karl Hobley 2b2256a31f Implemented background_position_style property on renditions 2021-07-30 11:08:44 +01:00
Karl Hobley 750ecf50b6 Transform focal point 2021-07-30 11:08:44 +01:00
John-Scott Atlakson 1917938d74
Update title of documentation page (#7368)
* Update title of documentation page

The title of this page mentioned videos because in the original version of this document it _did_ cover adding embedded videos. However, this page no longer mentions videos aside from the title.

* Fix length of underline
2021-07-27 09:19:07 +01:00
Jesse Menn 1a7563406e
Converts inline panel anchor to button to make keyboard focusable. (#7346)
* Converts inline panel anchor to button to make keyboard focusable.

* Adds type='button' and undoes change to  expanding_formset.js.

* Release notes for #7346

Co-authored-by: Storm Heg <storm@stormheg.co>
2021-07-24 11:22:28 +02:00
Matt Westcott 2c4db8f2b1 Release note for #7361 2021-07-23 10:09:06 +01:00
Naomi I. Morduch Toubman 99f05d67cb
Change `master` to `main` (in more places) (#7358)
* Update references to branches now named `main`

* Change unnecessary use of `master`

* Change link to be to specific ES docs version

Old release notes should link to contemporaneous docs when possible
2021-07-21 14:09:31 -04:00
Matt Westcott 259c71a16b Add release note for performance improvements 2021-07-21 17:29:03 +01:00
Sean Kelly 7a3deee8b9 Possessive "it" (#7357)
"it's" → "its"
2021-07-21 16:25:48 +01:00
Karl Hobley bea17ac8b6 Add a log action for copy_for_translation operation (#7352)
Currently, when a user copies a page for translation, the 'copy' log action is used.

This adds a more specific 'copy_for_translation' operation to be used instead when the user is translating.
2021-07-21 16:22:55 +01:00
Cynthia Kiser 07e03bc683 Fix "undefined label" warnings caused by missing leading underscore in the label 2021-07-21 15:05:19 +01:00
Karl Hobley 8ba4bbae57 Changelog / release note / contributor for #7302 2021-07-20 18:43:21 +01:00
Matt Westcott 8cfc16de03 Eliminate use of re_path from integration docs
Using `re_path` for the page serve view is unnecessary (the project template doesn't do it) and will be increasingly unfamiliar to new Django devs as `path` becomes more widespread.
2021-07-20 12:22:55 +01:00
Matt Westcott f98bd6870d Release note for #7334 2021-07-14 13:16:02 +01:00
Matt Westcott 8c97c254a7 Add server-side min_num and max_num validation for ListBlock
Fixes #5300
2021-07-14 13:14:15 +01:00
Matt Westcott bdfa3811d1 Remove outdated versionadded/versionchanged annotations 2021-07-13 17:10:56 +01:00
Matt Westcott 5a11ce0c5c Add release note section for 2.15 2021-07-13 17:10:47 +01:00
Matt Westcott 7646a63873 Other features -> New features 2021-07-13 13:42:32 +01:00
Matt Westcott 2bec229e12 Correctly handle embeds inside inline styles/entities in richtext contentstate conversion (#7338)
Fixes #4602 as per https://github.com/wagtail/wagtail/issues/4602#issuecomment-479539444 (option 2).

Previously, given HTML input such as:

    <p>
        <i>a bunch of text before <embed alt="somepic" embedtype="image" format="fullwidth" id="1"/> after</i>
    </p>

the `<embed>` would start a new block, but the converter would keep hold of references to currently-open tags such as the `<i>`, so that when the corresponding `</i>` tag was encountered, it could match it up to the opening tag and fill in the 'length' field on the resulting InlineStyleRange object. However, since the span length is calculated based on the text content of the _current_ block (which is now "after"), it would obtain the wrong result - or, when there is no content between the embed and the closing tag (and thus no current block), would throw the exception `'NoneType' object has no attribute 'text'`.

In this new approach, when the embed is encountered, the current block is closed _along with all of its styles and entities_, causing the lengths of those spans to be filled in correctly. After inserting the embed, the current block is then set to a replica of the previous block with all those styles and entities reopened, so that when the closing tag is finally encountered, the span length is correctly set based on the new 'after' block.
2021-07-13 11:20:10 +01:00
Matt Westcott c44c0a9800 Release note for #7324 in 2.13.4 2021-07-13 11:04:34 +01:00
Matt Westcott afe7813d92 Release note for #7324 in 2.12.6 2021-07-13 11:03:57 +01:00
Nick Smith 1d03c36421 Change some word choices in the docs
This replaces several US English dialectical uses of _regular_ with
British English equivalents _normal_ or _standard_. This is the result
of a search of the docs for the string 'regular', rather than due to any
US English seen in the user interface.

This search also found one use of _regularly_ where _often_ was closer
to the intended meaning, a change which is less about dialect than about
word choice.
2021-07-13 10:51:46 +01:00
Nick Smith ab7b0d81d6 Change wording of docs and UI for page aliases
This replaces several US English dialectical uses of _regular_ with
British English equivalents, chiefly _ordinary_.
2021-07-13 10:51:46 +01:00
Thibaud Colas d6cd16f001 Add separate mention about known issues to editor guide 2021-07-12 18:20:54 +01:00
Thibaud Colas d2c27844a6 Update accessibility targets with links to known issues 2021-07-12 18:20:54 +01:00
Matt Westcott be857cc5e9 Release note / Upgrade consideration note for #7292 2021-07-12 16:55:21 +01:00
Thomas Kremmel 9b387625ca docs: add facebook and instagram oembed change docs 2021-07-12 15:31:31 +01:00
Coen van der Kamp 3f24beaae6 Add background information on multi site, multi instance and multi tenancy (#7228) 2021-07-09 17:05:28 +01:00
Karl Hobley 7d237092d1 Fix crash when user copies a page from a section they can't publish (#7313) 2021-07-09 17:01:58 +01:00
Andrew Stone ded8bacc5d Use DATETIME_FORMAT for localization in templates (#7321) 2021-07-09 16:33:02 +01:00
Matt Westcott e0ac8ae73d Support non-block validation errors on ListBlock (#7322) 2021-07-09 16:24:11 +01:00
Kevin Gutiérrez 4eb7c2c019 Change spin animation name (#7299)
The animation name `spin` is too generic, and it can be easily override by other libraries (eg. the code used in (django-json-widget)[https://github.com/jmrivas86/django-json-widget/blob/master/django_json_widget/static/dist/jsoneditor.min.css]) or by custom code, affecting the saving animation.
2021-07-08 16:29:54 +01:00
Matt Westcott 60a3365ce2 Add Daniel Fairhead to contributors 2021-07-07 16:30:36 +01:00
Petr Dlouhý 3f260f4598 add google data studo to oEmbed providers 2021-07-06 21:17:46 +01:00
Dan Braghis f1ddaa9a46 Optimize images used in documentation
Ran through ImageOptim (with 100% quality)
Saved 3.6 MB out of 10.7 MB. 38.4% per file on average (up to 94.7%)
2021-07-06 21:14:33 +01:00
Vlad Podgurschi f54e7e1e41 Add instructions on copying and aliasing pages to the editor's guide #7010 2021-07-06 20:44:10 +01:00
Daniel fee65a9345 Preserve `features` & `editor` kwargs on RichTextField.clone() (#7272) 2021-07-06 17:20:12 +01:00
Matt Westcott b8680fbaf2 Give quoted and unquoted versions of pip install commands
Fixes #7312
2021-07-05 17:53:12 +01:00
Andrew Stone d6c92f30af Add missing block.super in extra_css/extra_js blocks (#7310) 2021-07-05 17:28:13 +01:00
Matt Westcott 9850ca7acf Fill in release date for 2.13.3 2021-07-05 11:08:36 +01:00
Matt Westcott d7bd351660 Release notes for #7306 and #7298 in 2.13.3 2021-07-02 12:10:59 +01:00
Scott Cranfill 9f3e6585af
Docs: Update sphinx-wagtail-theme to 5.0.4 (#7296) 2021-06-30 11:18:07 +02:00
Matt Westcott 990e91a85a Release note for #7295 in 2.13.3 2021-06-29 13:36:15 +01:00
Matt Westcott ac00945d3b Ensure comparison view picks up request/instance-specific EditHandler customisations (#7285)
Some edit handlers, such as the 'unofficial' PerUserContentPanels recipe from #4749, vary their field list according to the current request/instance by hooking into bind_to. This was not being called on the comparison view, meaning that when these edit handlers are in use, the field list was never getting populated and so the view was wrongly reporting no changes.

Note that the bind_to method also allows binding a form, which we do still skip (since the comparison view doesn't construct one).
2021-06-29 13:15:33 +01:00
Matt Westcott 1750c01d05 Add release notes for 2.13.3 2021-06-28 14:12:56 +01:00
Matt Westcott 9fad84b768 Refactor getChooserConfig / filterEntityData into subclasses of ModalWorkflowSource
This means we're not artificially forcing four different entity types into the same code path, and makes it possible to define new entity types outside of this module.

Also relax the eslint no-unused-vars to allow unused function parameters - having multiple classes following the same interface is a legitimate use of this.
2021-06-28 12:25:29 +01:00
Thibaud Colas 55fe295346 Remove docs for WAGTAILSEARCH_RESULTS_TEMPLATE, WAGTAILSEARCH_RESULTS_TEMPLATE_AJAX
The templates they would override have been removed from our search app, and copies placed in the project template.
2021-06-28 11:23:24 +01:00
Thibaud Colas 86b84a2010 Add headings for all settings 2021-06-28 11:23:24 +01:00
Storm Heg 3ee060ffd7
Add keyboard and screen reader support to Wagtail user bar (#6994). Fix #6108
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2021-06-26 20:53:44 +01:00
nmorduch 368049b835 Warn if StreamField doesn't use StreamFieldPanel (#7276) 2021-06-25 16:44:04 +01:00
Petr Dlouhý 50e4f5151d fix small youtube embed - allow to override max_width/max_height in EmbedBlock 2021-06-25 16:15:09 +01:00
Gordon Pendleton a64eb1f2f3 adjusted queries to ignore expired embeds (#7279) 2021-06-25 14:10:00 +01:00
Daniel 431549c427 incorrect field name 2021-06-22 14:34:16 +01:00
Matt Westcott 701fc099a4 Fix mention of documents being served through a Django view
Since Wagtail 2.7, this is no longer true by default when using remote storage - only when `WAGTAILDOCS_SERVE_METHOD` is explicitly set to `serve_view`.
2021-06-22 09:30:33 +01:00
Matt Westcott a28376a5c9 Give 404 pages a meaningful HTML title in project template (#7262)
Improve the generation of `<title>` tags as follows:

* use `page` in preference to `self` (self has been semi-deprecated ever since we added jinja2 support)
* Retrieve current site with `{% wagtail_site %}` rather than page.get_site so that it works on non-pages such as 404s
* Fill in the 'title' block on 404.html
2021-06-21 14:53:08 +01:00
Michael Brown 30ec4631d2 Disable image/document Update button on click (#6676) 2021-06-18 16:58:19 +01:00
Chris Pollard 5f7181e05d Fix: Prevent 500 error when filtering by content_type. (#6755) 2021-06-18 16:42:42 +01:00
Matt Westcott 87057501ac Add titlesonly to reference / topics top-level TOCs
This prevents duplicated headings in places where the second-level index page has intro blurbs for each subsection (and also means we're not listing out long multi-section pages in full in the index, but given how big these indexes are that's probably not a bad thing).
2021-06-18 15:17:24 +01:00
Jake Howard d5b955b0e4 Exclude root pages from `ModelAdmin`s (#7213)
Previously, this would fail, as `user_can_copy_obj` doesn't handle root
pages. Root pages also are special in a number of ways, and handling
copying is tricky and non-obvious.

If someone needs to show root pages (for some reason), they'll have to
special case them themselves.
2021-06-18 14:10:39 +01:00
Matt Westcott 74e3c1764f Release note for CVE-2021-32681 in Wagtail 2.13.2 2021-06-17 11:32:07 +01:00
Matt Westcott f108167111 Release note for CVE-2021-32681 in Wagtail 2.12.5 2021-06-17 11:31:34 +01:00
Matt Westcott 5954921cdf Release note for CVE-2021-32681 in Wagtail 2.11.8 2021-06-17 11:31:28 +01:00
Godswill Melford 212def6aa2 docs: update custom_account_settings.rst
Modify CustomSettingsForm import in hooks.py in user model usage
2021-06-16 10:19:03 +01:00
Thibaud Colas 14b0e807d6
Update guidance on alt text for images in rich text
This shortcoming was fixed and released in Wagtail 2.13
2021-06-11 14:11:55 +01:00
Chris Pollard c9a55d8b1b Fix tagged page page copy regression in _copy_m2m_relations (#7224)
Fixes #7230
2021-06-11 14:08:55 +01:00
Matt Westcott 0ef7a4ba05
Fix syntax error in StreamBlock example (#7238)
Fixes #7237
2021-06-04 19:04:38 +01:00