Wykres commitów

3343 Commity (02ad797673a6616e097d8b77a0b15e8dbdebc4a0)

Autor SHA1 Wiadomość Data
Sævar Öfjörð Magnússon a541510417 Additional safeguard to check if a cached site is from an older version of Wagtail (#6515) 2020-11-04 12:22:43 +00:00
Matt Westcott 14f1d8d59a Add release notes section for 2.11.1
Conflicts:
	CHANGELOG.txt
	docs/releases/index.rst
2020-11-04 10:45:15 +00:00
Naglis Jonaitis 74c692ba21 Fix ModelAdmin documentation example
The `get_extra_class_names_for_field_col` seems to have an `if` missing
and uses an undefined `balance`.
2020-11-03 13:49:18 +00:00
Matt Westcott 39f953eca3 Release note for Python 3.9 support (#6508) 2020-11-03 11:58:01 +00:00
Matt Westcott 5bcfcdd315 Formalise support for Python 3.9 2020-11-02 17:29:58 +00:00
Matt Westcott 330f0dde15 Fill in release date for 2.11 2020-11-02 15:06:22 +00:00
Matt Westcott d56f8ea1c5
More prominent note about wagtail-localize in i18n docs (#6506) 2020-11-02 12:46:16 +00:00
Karl Hobley 516150403b
Update 2.12.rst 2020-10-23 20:07:51 +01:00
Matt Westcott 94f6b755b2 Version bump to start work on 2.12 2020-10-23 16:55:21 +01:00
Matt Westcott e96f46c9e5 Version bump to 2.11rc1 2020-10-23 15:10:10 +01:00
Karl Hobley 6234023f39
Changelog / relase note for internationalisation (#6492)
* Changelog / relase note for internationalisation

* Apply suggestions from code review

Co-authored-by: Matt Westcott <matthew@torchbox.com>
2020-10-23 14:26:44 +01:00
Loic Teixeira 6c9478c139 Rework headings hierarchy
Initial hierarchy:

- Available panel types
    - FieldPanel
    - StreamFieldPanel
    - MultiFieldPanel
    - InlinePanel
    - FieldRowPanel
    - HelpPanel
    - PageChooserPanel
    - ImageChooserPanel
    - FormSubmissionsPanel
    - DocumentChooserPanel
    - SnippetChooserPanel
        - Built-in Fields and Choosers
        - Field Customisation
    - Full-Width Input
    - Titles
    - Placeholder Text
    - Required Fields
    - Hiding Fields
        - Inline Panels and Model Clusters

Revised Hierarcy:

- Panel types
    - Built-in Fields and Choosers
        - FieldPanel
        - StreamFieldPanel
        - MultiFieldPanel
        - InlinePanel
        - FieldRowPanel
        - HelpPanel
        - PageChooserPanel
        - ImageChooserPanel
        - FormSubmissionsPanel
        - DocumentChooserPanel
        - SnippetChooserPanel
    - Field Customisation
        - Full-Width Input
        - Titles
        - Placeholder Text
        - Required Fields
        - Hiding Fields
    - Inline Panels and Model Clusters
2020-10-23 10:36:01 +01:00
Karl Hobley bd70ecf318 Tweaks to internationalisation docs 2020-10-23 10:29:22 +01:00
Matt Westcott 7d92e3982f Fix steps for adding translations to an existin snippet
* Fix BootstrapTranslatableMixin to skip TranslatableModel's system check for the missing unique constraint
* Fix incorrect import for BootstrapTranslatableModel and use of `--empty` in final schema migration
* Clarify handling of Meta classes, the fact that you need to run makemigrations for step 1, and what to do for the non-nullable 'locale' prompt
2020-10-22 16:44:54 +01:00
LB Johnston f6dce3d6df Update changelog entries for @samgans 2020-10-22 19:46:07 +10:00
Karl Hobley f0ce1f4775 Replace pushPage/popPage with more flexible gotoPage method
- page explorer
2020-10-22 19:45:34 +10:00
Anton Zhyltsou 41eccc72bc Consistently redirect to admin home on permission denied
* Catch PermissionDenied exceptions in require_admin_access decorator
* Fixed permissions errors for the documents views
* Added permissions tests for the images views
* Fixed some tests for limited permissions
* fixes #6352
2020-10-22 00:10:24 +10:00
Coen van der Kamp fd5e6b657f Switch breadcrumb icons to SVG 2020-10-21 23:57:09 +10:00
Matt Westcott 878f2784cb Add config section for doc8 in setup.cfg and ignore _build dir 2020-10-21 12:39:32 +01:00
Matt Westcott accdbd2174 Mark 2.11 as an LTS release 2020-10-21 12:14:04 +01:00
Matt Westcott 75f363ecf3 fix trailing whitespace 2020-10-21 12:12:34 +01:00
Thibaud Colas 6e404740c7 Implement admin-only IE11 support warning message, linking to support plans 2020-10-21 12:05:27 +01:00
meghanabhange 3a2f2a6ea3 form_classname meta in FieldBlock (#6470) 2020-10-20 19:17:54 +01:00
Sævar Öfjörð Magnússon b7643f869d Fix spacing around the privacy indicator panel. (#6454) 2020-10-20 13:07:03 +01:00
Andy Babic cbf65ba645 Release notes for #6386 2020-10-19 21:37:28 +01:00
David Bramwell e28aa6b194 Document ModlelAdmin.prepopulated_fields 2020-10-19 21:36:05 +01:00
Matt Westcott 9947b955da Lint config fixes (#6473)
Ref #6463, #6428

* pin isort to 5.6.4
* update isort version mentioned in python_guidelines.rst
* make lint commands consistent between make lint and circleci
* fix isort errors on files outside of /wagtail
* speed up isort by ignoring additional directories and filetypes
2020-10-19 21:33:10 +01:00
Jim Jazwiecki 024717fe0f add support for natural keys to group collection permissions for use in fixtures (#6211) 2020-10-19 21:31:10 +01:00
Karl Hobley 0efe4a75a5
[RFC 54] Internationalisation reference docs (#6377)
* Reference docs for internationalisation

* Update docs/reference/pages/model_reference.rst

Co-authored-by: Dan Braghis <dan@zerolab.org>

* Update docs/reference/pages/model_reference.rst

Co-authored-by: Dan Braghis <dan@zerolab.org>

* Update docs/reference/pages/model_reference.rst

Co-authored-by: Dan Braghis <dan@zerolab.org>

* Apply suggestions from code review

Co-authored-by: Dan Braghis <dan@zerolab.org>

* Add missing comma

* Apply suggestions from code review

Co-authored-by: Matt Westcott <matthew@torchbox.com>

Co-authored-by: Dan Braghis <dan@zerolab.org>
Co-authored-by: Matt Westcott <matthew@torchbox.com>
2020-10-19 18:40:58 +01:00
Matt Westcott 9fab50e87a remove trailing whitespace 2020-10-19 18:11:12 +01:00
Jean Zombie b5cfca31eb Add example of updating a page within after_create_page (#6373)
This update intends to add the answer I got on my slack support request (https://wagtailcms.slack.com/archives/C81FGJR2S/p1599209092087000).
2020-10-19 18:01:49 +01:00
Matt Westcott 27432e6c3f Release note for #5976 2020-10-18 15:31:56 +01:00
Matt Westcott 5f712b803a fix duplicate target name enabling_internationalisation 2020-10-16 14:15:33 +01:00
Karl Hobley 82dafc7ef8 Add docs for new i18n API filters (#6452) 2020-10-16 13:57:37 +01:00
Karl Hobley bdfee22e8b
New topic docs for internationalisation (#6436)
* New topic docs for internationalisation

* Spelling + Grammar fixes

* Clarity fixes

* Fix formatting issues
2020-10-16 13:36:19 +01:00
Karl Hobley 44d40292e8 Add release note for page aliases (#6468) 2020-10-16 11:01:10 +01:00
Karl Hobley 10137b0162 Changelog / release notes for #6440 and #6441 + some spelling fixes 2020-10-16 10:45:29 +01:00
Karl Hobley 7f7f9b4de1 Make snippets action menu hookable 2020-10-14 14:41:22 +01:00
Matt Westcott 7e74b2b5d9 Add migration to apply alphabetical collection ordering 2020-10-13 17:54:35 +01:00
Matt Westcott 906380486d isort new files added in #6428 2020-10-13 14:19:07 +01:00
Matt Westcott 7be5363dac
Avoid retranslating month / weekday names that Django already provides (#6301)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2020-10-09 14:16:40 +01:00
Karl Hobley c170c50c78 Add view for converting aliases into regular pages 2020-10-08 10:24:58 +01:00
Karl Hobley b5eddca28b Synchronise alias page content when the source is updated 2020-10-08 10:24:58 +01:00
Karl Hobley 674fa8e27a Add Page.create_alias method 2020-10-08 10:24:58 +01:00
Karl Hobley 17f63f0efc Add alias_of field to Page 2020-10-08 10:24:58 +01:00
Karl Hobley 77610d1e64 Changelog / Release notes for #6434 and #6442 2020-10-06 16:02:48 +01:00
Sævar Öfjörð Magnússon 9d10e28214
Update wagtail app list to match installed apps in documentation 2020-10-06 15:03:39 +01:00
Karl Hobley f2dfff8061 Flake8 all other Python files 2020-10-05 14:27:50 +01:00
Matt Westcott dd42d91663 Release note / additional fix for #6339 2020-10-05 14:25:33 +01:00
Frantisek Holop 07a4b41444 deprecated 2020-10-05 14:23:50 +01:00
Matt Westcott dd442a3990 remove trailing whitespace to placate doc8 2020-10-05 12:44:57 +01:00
jacobtoppm c5a7584553 Add changelog and contributor for #6423 2020-10-05 12:36:54 +01:00
Sævar Öfjörð Magnússon 610cf07a85 Remove reference to photographer credit in documentation, add reference to title 2020-10-05 12:34:26 +01:00
Sævar Öfjörð Magnússon cbe5c109dc Fix incorrect reference to edit fields in image documentation 2020-10-05 12:34:26 +01:00
meghanabhange f1fbbcbc24
Add validation for file extension in AbstractDocument using WAGTAIL_DOCS_EXTENSIONS setting (#6423) 2020-10-05 12:26:00 +01:00
Karl Hobley aafb5fb1eb Change docs code block style to 'default' 2020-10-05 11:21:07 +01:00
Karl Hobley cf38b2457d Put quotes around some inline code 2020-10-03 14:43:03 +01:00
Karl Hobley 181b523faf Add more names and jargon to spelling wordlist 2020-10-03 14:43:03 +01:00
Karl Hobley 72ef7a73e8 ElasticSearch => Elasticsearch 2020-10-03 14:43:03 +01:00
Karl Hobley 39d931d77d Javascript => JavaScript 2020-10-03 14:43:03 +01:00
Karl Hobley 6e5f89adf2 General spelling fixes 2020-10-03 14:43:03 +01:00
Karl Hobley 9195131738 Lint docs with doc8 2020-10-03 14:43:03 +01:00
Karl Hobley 8251b4a6c7 Changelog / Release note / Contributor for #6420 2020-10-01 18:53:35 +01:00
Cynthia Kiser b817e869bf Open preview in new window (#6395)
Make this preview button match the other Preview/Draft/Live buttons in admin UI
2020-10-01 13:23:32 +01:00
Ameet Virdee 48a8af71e5 Add documentation for placeholder text in Field Panels 2020-10-01 08:06:43 +02:00
Matt Westcott dc110b5432 Remove note about MSSQL being known to work
As per https://github.com/wagtail/wagtail/issues/6393
2020-09-30 16:29:08 +01:00
Matt Westcott 008b6c12c4 Update BaseLogEntry docs to reference user_display_name. Fixes #6418 2020-09-30 15:43:27 +01:00
thenewguy a88866c3c6 Force string url before passing to urlparse (#6341) 2020-09-30 08:10:50 +01:00
Karl Hobley 8605717b62 Revert "Force string url before passing to urlparse (#6341)"
This reverts commit 8a4b04209e.
This reverts commit c005e6fd29.
2020-09-29 16:52:29 +01:00
Karl Hobley c005e6fd29 Changelog / release note for #6341 2020-09-29 13:54:02 +01:00
Saptak S 61e8173625 Use get_admin_display_title in PageChooserPanel 2020-09-28 17:21:12 +01:00
François Poulain 0c6815910b Stronger check on blocks names (#6295)
Ref: https://github.com/wagtail/wagtail-react-streamfield/issues/54
2020-09-28 14:31:39 +01:00
Matt Westcott c1da0fe56d Inline PDF serving doesn't only apply on the edit view 2020-09-28 13:56:11 +01:00
Matt Westcott 2590fab0b6 Release note for #6410 2020-09-28 13:53:49 +01:00
Matt Westcott 8edf16e5ff Serve PDFs inline in the browser
Fixes #1158
Add config options WAGTAILDOCS_CONTENT_TYPES and WAGTAILDOCS_INLINE_CONTENT_TYPES to determine the Content-Type and Content-Disposition headers returned for documents when using the Django serve view, and default to application/pdf being served inline.
2020-09-28 07:22:58 +10:00
Scott Cranfill 70bb9d934b
Support SVG icons in ModelAdmin menu items (#6402)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2020-09-25 15:58:52 +01:00
Matt Westcott 890974320f Fill in release date for 2.10.2 2020-09-25 11:05:22 +01:00
Matt Westcott 510e52923a Skip content comparison in create_log_entries where revision cannot be restored (#6407)
Fixes #6368
2020-09-25 10:14:36 +01:00
Coen van der Kamp 0338cc37f7
Add icon sprite caching via local storage (#6243)
Improve Wagtail admin page load performance by caching SVG icons sprite in localstorage

Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2020-09-24 20:12:32 +01:00
Matt Westcott 3300e3b851 Consistently show user's full name (where available) in reports (#6400)
Add user_display_name template filter to simplify user display code

This replaces the `{{ some_rambling_expression_evaluating_to_a_user.get_full_name|default:some_rambling_expression_evaluating_to_a_user.get_username }}` pattern used all over the place.

Display user's full name (where available) in LogEntry listings

Don't use full name if it consists of whitespace (which happens on our test user models)

release note
2020-09-24 16:16:19 +01:00
Martin Mena 3d7f2d0905 Add missing condition for StreamBlockComparison 2020-09-23 11:26:14 -04:00
Dan Braghis 55d82d6167 Limit page-editor input changes to non-submit inputs (#6397) 2020-09-23 11:50:19 +01:00
Dino Perovic 1267468c4c Check preview mode before displaying the button 2020-09-21 14:34:43 +01:00
Matt Westcott 69919d1687 Move #6369 to 2.10.2 release notes 2020-09-21 14:31:06 +01:00
Matt Westcott f2f4503f4f Un-revert #6220
This reverts commit 3467e57de9.
2020-09-16 16:01:02 +01:00
Matt Westcott 3467e57de9 Revert #6220 due to failures when LANGUAGE_CODE = 'en-us'
This reverts commits db92a94506 to faa0665116 inclusive.
2020-09-16 14:26:30 +01:00
Matt Westcott faa0665116 Upgrade consideration note for get_site_root_paths 2020-09-15 10:47:25 +01:00
Andy Babic 5e6a674686 Minor release notes amends 2020-09-04 11:04:38 +01:00
Andy Babic 1c67aa6a48 Release notes for Tests for #6141 2020-09-03 20:42:39 +01:00
Andy Babic 0d8301e28f Release notes for #6190 2020-09-03 20:11:22 +01:00
Andy Babic 10d68fdd09 Release notes for #6362 2020-09-02 20:42:56 +01:00
Vince Salvino 7ec4b516fa Specify required python versions (#6366) 2020-09-02 17:52:00 +01:00
Matt Westcott 461abec5b5 Release note for #6370 2020-09-02 10:36:27 +01:00
Andy Babic 8fd5d66756 Add RoutablePage.render() helper method and update documentation 2020-09-01 22:24:08 +01:00
Matt Westcott 4e1e4f03c0 add missing 2.10.2 release notes file 2020-08-28 10:37:10 +01:00
Matt Westcott 63702d368b Add release notes for 2.10.2 2020-08-28 10:35:37 +01:00
Matt Westcott 4f42e61a2c Fix incorrect reference to MIDDLEWARES 2020-08-27 16:07:22 +01:00
Matt Westcott 925d64730a Add examples of replacing request.site 2020-08-27 16:05:06 +01:00
Matt Westcott e50056c3b0 Update responsive embeds docs
The current text still mentions the rich-text class (which is now formally deprecated) alongside responsive-object (which is not deprecated, but off by default). Split up the CSS snippet to make it clear that these are two distinct cases, and eliminate use of rich-text.
2020-08-27 12:25:23 +01:00
Matt Westcott 30c1a4132c Release note for #6335 2020-08-26 14:17:18 +01:00
Matt Westcott 3b361673ee Fill in release date for 2.10.1 2020-08-26 14:14:13 +01:00
Matt Westcott e3bbccd814 Fix timesince_last_update for naive datetimes (USE_TZ=False)
Fixes #6345
2020-08-25 15:11:24 +01:00
Katie McLaughlin 637000fc08 Add notes for CORS settings on Google Cloud Storage 2020-08-24 13:05:38 +01:00
Katie McLaughlin 707dc171dc Add Google Cloud deployment references
App Engine video
Cloud Run codelab
2020-08-24 13:05:38 +01:00
Matt Westcott 23bec4345b Release note for #6336 2020-08-24 09:48:00 +01:00
Matt Westcott a1f882b7c9 Convert remaining gettext .format strings to old-style string formatting
As per #5548 / #6238. Fixes #6343
2020-08-21 13:26:00 +01:00
Matt Westcott b111e100a6 Release note for #6329 2020-08-17 17:55:14 +01:00
Matt Westcott 3f1b41b823 Release note for #6319 2020-08-17 16:58:19 +01:00
Matt Westcott 46e5dbb5b0 Release note for #6322 2020-08-17 16:58:18 +01:00
Matt Westcott 58f5c29252 Add release note sections for 2.10.1 2020-08-17 16:58:18 +01:00
Matt Westcott f1959717e9 Fill in release date for 2.10 2020-08-11 10:30:26 +01:00
Robbie Mackay 437e3b9258 Replace unidecode with anyascii in wagtail.core.utils.string_to_ascii
- Add anyascii to replace unidecode
- Update wagtail.core.utils.string_to_ascii to use anyascii.
- Anyascii has a similar but not exactly the same encoding - see updates to tests.

Refs https://github.com/wagtail/wagtail/issues/3311
2020-08-07 17:48:58 +01:00
Matt Westcott bb3243b9a9 Use https oembed endpoints where available
Fixes #6288
Many of the oembed endpoints currently listed with an http:// URL now redirect to https://. Changing these to https:// saves a redundant redirect and avoids failures where the http URL has been blocked (see #6288). Also simplified the patterns for matching http or https - the group in `http(?:s)?` is redundant and should just be `https?`.
2020-08-07 17:36:05 +01:00
Matt Westcott 8542f5fe9c Fix underline lengths to prevent Sphinx warnings 2020-08-07 17:23:42 +01:00
jacobtoppm c654f0d71a Fix bulletpoint formatting, and update outdated information, particularly around available page statuses and the headings on the workflow edit view 2020-08-07 17:10:27 +01:00
jacobtoppm 5d8caaf096 Update editor manual images where they show the old edit/workflow admin views before revamp 2020-08-07 17:10:26 +01:00
jacobtoppm e85f16b500 Add a use case example for WAGTAIL_WORKFLOW_CANCEL_ON_PUBLISH=False 2020-08-07 17:10:24 +01:00
jacobtoppm b10b24a7b6 Update descriptions of the editing interface and workflow management for consistency. Note that screenshots are not yet updated 2020-08-07 17:10:23 +01:00
Karl Hobley de6d14a667 Release notes for #6267 and #6268 2020-08-07 15:51:09 +01:00
Karl Hobley 9ad14ea439
Add hooks for snippet listing buttons 2020-08-07 15:47:27 +01:00
Karl Hobley 9b02147d3e Add hooks.register_temporarily for testing hooks
There's currently a number of places where we test hooks by registering
hook functions from test methods. These are never cleaned up so that
hook remains registered in future tests. This can cause issues with
tests not working consistently when you run a subset of the tests.

This adds a `register_temporarily` function to the hooks module. This
function can be used either as a decorator or a context manager. It'll
always remove the hook after the decorated function or with block exits,
even if it exits through an exception.
2020-08-07 15:47:04 +01:00
Matt Westcott ba16b4125d Release note for Django 3.1 support 2020-08-06 11:26:39 +01:00
Matt Westcott f804eba423 Formalise Django 3.1 support
Conflicts:
	wagtail/project_template/requirements.txt
2020-08-06 11:26:26 +01:00
Matt Westcott dc2b4a5877 Add release note about populating form builder clean_name
Ref: #6093
2020-08-04 17:59:35 +01:00
Karl Hobley cb4f98b5f1 Release note for #6290 2020-08-04 16:03:15 +01:00
Kalob Taulien d2e196b0c5
Add wagtail --version 2020-08-03 07:21:48 -06:00
Jesse Menn b934194622
Make page-level actions accessible to keyboard users in page listing tables (#6280)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2020-08-01 21:52:28 +01:00
Karl Hobley 4bf28b502c Fix docs for `construct_page_listing_buttons` 2020-07-31 11:14:48 +01:00
Karl Hobley f3f932d2e5
Add before_{create,edit,delete}_snippet hooks 2020-07-30 08:08:40 +01:00
Matt Westcott e0dc53d9ad Remove versionadded/versionchanged notes for 2.9 2020-07-28 12:53:22 +01:00
Matt Westcott 48dee654b4 Move SiteMiddleware to wagtail.contrib.legacy 2020-07-28 12:53:22 +01:00
Matt Westcott 7451500054 Add release note sections for 2.11 2020-07-28 12:53:22 +01:00
Chris Contolini 4231d9ef11
Fix minor typo in TableBlock docs (#6259)
Also a small grammatical fix.
2020-07-28 07:14:05 -04:00
Matt Westcott 622d439e6d Release note for workflow 2020-07-24 17:11:08 +01:00
Matt Westcott d3f7ffa369 Add a variant of WorkflowAction that just collects, validates and returns form data so that the action can be performed separately 2020-07-24 16:59:33 +01:00
jacobtoppm c79668929e Update reference documentation, custom task guide, and release notes, and fix documentation build errors 2020-07-24 16:59:33 +01:00
jacobtoppm 85e4426948 Cancel ongoing workflows when a page is published, depending on the value of a new setting, WAGTAIL_WORKFLOW_CANCEL_ON_PUBLISH. Add a warning modal before publication if a workflow will be cancelled 2020-07-24 16:59:33 +01:00
Matt Westcott bf53123309 Fix sphinx warnings from workflow / audit log documentation 2020-07-24 16:59:33 +01:00
Matt Westcott 6f85bca664 Use % formatting for new workflow / audit log translation strings
See #5548 - Transifex recognises % formatting, and will guard against translators introducing errors by attempting to translate the embedded variable names.
2020-07-24 16:59:33 +01:00
Matt Westcott c8a8689cee Document icon_name and classname for register_page_action_menu_item 2020-07-24 16:59:33 +01:00
Matt Westcott ace3e1bf99 Release note for prepopulating site history logs 2020-07-24 16:59:33 +01:00
Dan Braghis 92e7330180 Update docs with current log actions and the rule of thumb for logging 2020-07-24 16:59:33 +01:00
Dan Braghis f69287f6f4 Add documentation 2020-07-24 16:59:33 +01:00
Dan Braghis fb0742802f Include task description in choosers, if defined (#6200) 2020-07-24 16:59:33 +01:00
Karl Hobley edfd17a1f1 Reduce usage of edit handlers for workflow management (#6172)
* Use plain old Django forms for tasks

* Revert "Add ExcludeFieldsOnEditMixin for edit handlers, disabling specific fields when bound to an existing instance rather than creating a new one"

This reverts commit 62961b74bb.

* Move Workflow edit handler creation into Workflow forms

Only advantage of having it the way it was before is that allows
overriding the edit handler in subclasses. But nobody will be doing this
with workflows.

I've added a note into the code pointing out that we might want to
rethink using edit handlers if:

 - It gets easier to style formsets without using InlinePanel
 - We want to allow customisation of the form (the use of edit handlers
   should be considered an internal implementation detail at the moment)

* Make task name readonly but groups editable

* Update wagtail/admin/templates/wagtailadmin/workflows/task_chooser/includes/create_form.html

Co-authored-by: Dan Braghis <dan@zerolab.org>

* Update wagtail/admin/forms/workflows.py

Co-authored-by: Dan Braghis <dan@zerolab.org>

Co-authored-by: Dan Braghis <dan@zerolab.org>
2020-07-24 16:59:33 +01:00
Dan Braghis 0f58bd241a Move workflow upgrade considerations to 2.10 2020-07-24 16:59:33 +01:00
jacobtoppm 5f2dbc3ce6 Rephrase upgrade considerations note about moderation per page vs per revision 2020-07-24 16:59:33 +01:00
jacobtoppm df3a63c7a2 Add new page methods and updated workflow state methods 2020-07-24 16:59:33 +01:00
jacobtoppm 2dbd4f8138 Fix dashboard docs 2020-07-24 16:59:33 +01:00
jacobtoppm 8148c79c28 Fix update considerations formatting and link to admin management guide 2020-07-24 16:59:33 +01:00
jacobtoppm 2037e8c089 Update images in documentation 2020-07-24 16:59:33 +01:00
jacobtoppm dde1507da1 Fix typos 2020-07-24 16:59:33 +01:00
jacobtoppm 16966b195b Add example of field belonging on custom TaskState, and fix typos 2020-07-24 16:59:33 +01:00
jacobtoppm d14563dfd5 Remove version reference 2020-07-24 16:59:33 +01:00
jacobtoppm 8911bd30d7 Add workflow models to reference 2020-07-24 16:59:33 +01:00
jacobtoppm 832e0be8e0 Add task_state_class specification for custom tasks to docs 2020-07-24 16:59:33 +01:00
jacobtoppm bf168df9f9 Document workflow signals 2020-07-24 16:59:33 +01:00
jacobtoppm c75a2a3549 Add workflow settings 2020-07-24 16:59:33 +01:00
jacobtoppm 364365b839 Start admin workflow management guide 2020-07-24 16:59:33 +01:00
jacobtoppm 80506cd2f5 Update info on publish permissions to match new workflow system 2020-07-24 16:59:33 +01:00
jacobtoppm 031a682f96 Update editor manual moderation references, and add info on new dashboard panels for workflow, including a new screenshot 2020-07-24 16:59:33 +01:00
jacobtoppm 4787e9e053 Add workflow upgrade considerations 2020-07-24 16:59:33 +01:00
jacobtoppm b508001336 Add developer guide to new Task types 2020-07-24 16:59:33 +01:00
jacobtoppm b8c70163ca Add custom_tasks.rst 2020-07-24 16:59:33 +01:00
Thibaud Colas d97f940e58 Release notes for #5885 2020-07-23 13:56:12 +01:00
Matt Westcott b8848ae2f5 Release note for #6250 2020-07-22 17:44:52 +01:00
Thibaud Colas 28b117a6bf
Add separate "accessibility and usability" section to 2.10 release notes (#6252) 2020-07-22 13:52:28 +01:00
LB (Ben Johnston) 1b3d190b3f
Fix group permission checkboxes not being clickable in IE11. Fix #5903 (#6115)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2020-07-21 22:24:14 +01:00
LB (Ben Johnston) 45ec139bc5
Hide snippets’ bulk delete for screen reader users as well (#6116)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2020-07-21 21:06:45 +01:00
Andreas Bernacca f9c5bab9cb
Add chevron to dropdowns that are missing them, and make "Site" label translateable (#6242)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2020-07-21 20:13:25 +01:00
Martin Coote 9f0dcf0097
Add skip link for keyboard users. Fix #5406 (#5780)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2020-07-21 18:16:36 +01:00
Matt Westcott b98d724def add link to 2.9.3 release notes 2020-07-20 10:38:39 +01:00
Matt Westcott 5714c2f71d Release note for 2.9.3 2020-07-20 10:38:07 +01:00
Matt Westcott 457643e686 Release note for 2.7.4 2020-07-20 10:37:13 +01:00
Matt Westcott e8d02091ee Add warning about WAGTAILFORMS_HELP_TEXT_ALLOW_HTML 2020-07-20 10:36:41 +01:00
Matt Westcott d9a41e7f24 Escape help text in form builder forms by default
This can be disabled with the setting WAGTAILFORMS_HELP_TEXT_ALLOW_HTML
2020-07-20 10:36:28 +01:00
FreshPass b59a737930 Update third_party_tutorials.rst
Fixing a 404 on the rosederwelt.com Deploying my Wagtail blog to Digital Ocean, pt. 1
2020-07-17 10:57:48 +01:00
LB (Ben Johnston) e097cfaab2 Changelog update for #6151 & #6189 2020-07-16 16:20:44 +10:00
Matt Westcott 78c9ef31d7 Typo fixes 2020-07-15 17:18:46 +01:00
Martin Sandström c8f493c095 Add documentation for WAGTAIL_REDIRECTS_FILE_STORAGE setting (#6114) 2020-07-15 16:35:04 +01:00
Matt Westcott 1ed501e5af
Sanitise window.location.hash when passing to jquery for tab handling (#6155)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2020-07-15 16:20:39 +01:00
Matt Westcott 9917d7d2e9 Additional documentation for next_url 2020-07-15 11:53:39 +10:00
Kevin d75ab584c7 Fixing typos 2020-07-14 10:56:28 +01:00
Matt Westcott ee954b8fe6 Release note for #5240 2020-07-13 18:32:01 +01:00
Andy Babic dd680ae4d4 Factor out content type fetching into a separate Page method, simplify the specific specific_class methods, and improve docstrings 2020-07-13 18:25:11 +01:00
Steven Wood 5611f5ef6c Clarify origin of From address used in password reset emails (#6219) 2020-07-13 18:15:21 +01:00
LB Johnston 450f1bef34 add upgrade considerations for hooks function signature changes 2020-07-13 16:06:09 +01:00
Matt Westcott 0546237a15 Release note for #6093 2020-07-13 14:03:18 +01:00
Storm Heg 8c306910dd Fix incorrect urls in the docs 2020-07-06 13:15:40 +01:00
Storm Heg 98c66359a8 Replace a few instances of re_path with path 2020-07-06 13:15:39 +01:00
Storm Heg 4076b9ef5e Replace calls to django.conf.urls.url with django.urls.path or django.urls.re_path 2020-07-06 13:15:37 +01:00
Matt Westcott 34785b9085 Release note for #6196 2020-07-03 19:19:41 +01:00
Matt Westcott 8b1699437f Release notes for 2.9.2 2020-07-03 12:58:19 +01:00
Maxxen 4afdbdea56 added maxNumChildBlocks property and callbacks to disable adding/removing child blocks to sequence. Also made streamfield add-buttons dissapear when capacity is reached (#6070) 2020-06-30 15:02:16 +01:00
Matt Westcott ccbbe8b8ee Release note for #6183 in 2.10 2020-06-30 14:25:30 +01:00
Andy Babic 58741d3989 Update Page.objects.specific() to warn instead of erroring when pages of the specific type cannot be found (#5928) 2020-06-30 14:23:25 +01:00
Matt Westcott 98301fe736 Release note for #6183 in 2.9.1 2020-06-30 11:49:55 +01:00
Seb b9347ee970 Add ability to extend EditHandler without a children attribute
- Only run checks on children for tabs that use BaseCompositeEditHandler (have children)
2020-06-30 07:08:03 +10:00
Matt Westcott 1b92c0a9ea
Upgrade jquery to 3.5.1 (#6167)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2020-06-27 08:22:13 +01:00
Dan Braghis 18fdd905d3 Release notes for #6125 and #6121 2020-06-26 11:12:35 +01:00
Samir Shah 30419231e5 Disable password auto-completion on UserForm password fields. (#6175) 2020-06-25 17:11:03 +01:00
Matt Westcott 3ec7eada56 Promote redirect importing to a major feature 2020-06-25 17:09:17 +01:00
Matt Westcott e9e6a8d5e7 Add more detail to RoutablePageMixin example (#6128) 2020-06-25 16:57:58 +01:00
Gassan Gousseinov a4e05f4538 I would like only add my own editor without to redefine a default one. (#6118) 2020-06-25 16:53:06 +01:00
Jean Zombie 9baf6ce62a Update hooks.rst (#6160 / #6161)
This proposed update is in regard to Issue #6160
2020-06-25 14:54:16 +01:00
Matt Westcott 8d21ad6e5a Release note for #6176 in 2.10 2020-06-25 10:31:29 +01:00
Matt Westcott 0067194d71 Release note for #6176 on 2.9.1 2020-06-25 10:29:52 +01:00
Matt Westcott 216dfdf459 Add release notes for Wagtail 2.9.1 2020-06-25 10:29:15 +01:00
Tom Dyson 20b99d4386
Remove 'whitelist' from page reference docs (#6153) 2020-06-16 11:23:51 +01:00
Timothy Bautista cfc2bc8470
Fix minor typo in 2.10 changelog (#6140)
XLX/XLXS -> XLS/XLSX
2020-06-12 09:30:39 +01:00
Karl Hobley 06303c7169 Change contributor name for mozgsml to Nikolay Lukyanov 2020-06-09 11:04:13 +01:00
Karl Hobley 8d84f6a415 Changelog/release note/contributor for #6040 2020-06-09 09:42:48 +01:00
mozgsml 4abeb8232d
WebP images quality/lossless compression parameters (#6040)
* Add WebP-image quality and lossless

* Add WebP-image quality and lossless to Docs

* add WebP quality tests

* Split image quality filter => jpegquality, webpquality

* WebP lossless to inage format options

* Update WebP quality/lossless docs

* Updated Willow version

* WebP quality/lossless minor fix
2020-06-09 09:29:48 +01:00
Matt Westcott e10a9f26e7 Use standard subheading format for upgrade considerations 2020-06-08 14:08:17 +01:00
Martin Sandström 301d1bc7f5 Add ability to import redirects from a file wagtail.contrib.redirects
* Add support for importing redirects via tsv, csv, xls and xlsx files
* Add import_redirects management command to redirects documentation
2020-06-07 11:20:39 +10:00
Matt Westcott 6e9bcef5db Release note for #6013 2020-06-05 15:23:50 +01:00
Thibaud Colas df164a7e69 Fix JS not working in IE11 due to using unimplemented NodeList#forEach 2020-06-05 07:24:33 +10:00
Andrew Bunker 6fe9d0a23a Add note about Elasticsearch backend credentials to docs (#6097) 2020-06-03 17:37:26 +01:00
Matt Westcott 67fc0d7787 Release note for #6046 2020-06-03 17:28:34 +01:00
Coen van der Kamp eb9cff7bf3 Drop null=True from Site.site_name
* Avoid using null on string-based fields such as CharField and TextField. If a string-based field has null=True, that means it has two possible values for “no data”: NULL, and the empty string.
* See: https://docs.djangoproject.com/en/3.0/ref/models/fields/#django.db.models.Field.null
2020-06-02 20:42:29 +10:00
Timothy Bautista 48511a7457 Strip HTML tags search index for RichTextBlock & RichTextField
* Add get_searchable_content function to RichTextField
* Fixes #6098
2020-06-02 20:34:38 +10:00
Timothy Bautista dd7a928353 Tweak Wagtail logo hover animation in docs
This matches the hover animation exactly the same as in Wagtail but without the "playful" wagtail Easter egg (where the original hover animation came from)
2020-06-02 20:34:20 +10:00
Matt Westcott ab71e515e4 Release notes for #6057 2020-05-27 18:17:04 +01:00
jacobtoppm ead6c8b2a6 Add WAGTAIL_TIME_FORMAT to settings reference 2020-05-27 13:55:52 +01:00
GTpyro 147fda12fa Update signals.rst for Python 3 compatibility
The send_to_slack example was not compatible with Python 3. Example is updated using the requests & json libraries (instead of urllib & urllib2)
2020-05-26 19:21:13 +02:00
Dan Bentley f43db1e69e Fetch and apply annotations if using specific() 2020-05-24 10:09:45 +10:00
Timothy Bautista 1958bba247 Fix typo in 2.10 release notes doc 2020-05-21 09:21:52 +01:00
Coen van der Kamp a1a2c35c1c Template render richtext without wrapper, add wagtail.contrib.legacy.richtext
* Add wagtail.contrib.legacy.richtext with tests & docs
* Make RichText.__html__ behave the same as template filter
* Resolves #1214
2020-05-21 07:53:31 +10:00
Coen van der Kamp eed16e0034 Add SVG Icons and include in admin menu
* This commit only covers the migration of the icons in the menu and draftail editor. All
other admin menu icons remain implemented as before.
* Existing font based icon support still exists.
* Convert menu icons to SVG
* This could be considered a breaking change for any Wagtail sites or
packages that are leveraging Wagtail's Button and Icon React components.
* Remove references to unused `submenu-trigger` class
* Prefix icon `id`s with `icon-` to prevent `id` collisions
* Add hooks support (not yet documented) for adding custom icons
2020-05-21 07:36:33 +10:00
Matt Westcott 92e9e15683 Release note for phrase search / search query expressions 2020-05-20 14:29:00 +01:00
Karl Hobley 9dd9d0c895 Docs for parse_query_string 2020-05-20 14:12:27 +01:00
Karl Hobley 81811f6c1c Documentation for phrase search and query classes 2020-05-20 14:12:18 +01:00
Coen van der Kamp 99abab5d6b Add section to explain commit to pull request 2020-05-19 17:56:26 +01:00
Karl Hobley 58f6aecfc7
Some cleanups in PostgreSQL search module (#5953)
* Separated logic for extracting indexable content

* Docs edits

* Readability improvements

* Simplify/deduplicate indexing code

* Simplify search code

Pulled in some code that will be included in a future Django release
(query.py)

* Reword a limitation

* Fix typo in docstring

* Raise a warning when Boost() is used in PostgreSQL search backend

* Add note mentioning that RawSearchQuery can be replaced in Django 3.1

* Add comment mentioning that we can replace query.py if Django PR merged
2020-05-18 15:54:31 +01:00
Matt Westcott 52013f4920 Mention INSTALLED_APPS ordering in custom user docs 2020-05-18 11:33:53 +01:00
Thibaud Colas 7eeb44ad04 Replace gulp-sass with gulp-dart-sass
* Rewrite Sass code that relies on deprecated or removed features in Dart Sass
* Remove unneeded rebuild of node-sass
* Update lockfile
2020-05-17 21:00:20 +10:00
Thibaud Colas 471823f238 Upgrade to Jest 23
* Jest 24 is out but upgrading to it would require us to also update our Webpack tooling to Babel 7, which is quite significant work.
* Rewrite Draftail initialisation tests to stop relying on jsdom script parsing
2020-05-17 20:35:00 +10:00
Kalob Taulien b5f5ac10db
Add export_filename option to modeladmin
Merge pull request #6031 from wagtail/reports-filename
2020-05-15 10:04:57 -06:00
LB (Ben Johnston) d3dd7296c9
docs - revise heading levels for feature detection (images) (#6029) 2020-05-15 09:42:37 +01:00
Lars van de Kerkhof 6194dcb74b Do not download entire search index on search terms with no hits
When a slice is specifically set to [0:0], which would yield an empty list,
instead wagtail will clear the slice, effectively downloading the entire search
index.

This scenario happens when a search term does not return any results.
So every time you enter a search term that has no results, the entire search
index is downloaded, you don't really feel it because wagtail only downloads
the pk values, and it is unlikely a site has millions of pages, but it is still
very inefficient and unwanted.
2020-05-15 11:45:54 +10:00
Coen van der Kamp 7253b2f6db Show userbar on moderation preview with approve and reject items
* Fixes #6008
* Regression from cbabc3d9c7
2020-05-15 11:30:42 +10:00
jacobtoppm cc676c4c9e Add export_filename option to modeladmin 2020-05-14 15:50:47 +01:00
Kalob Taulien f757324039 Add Snippet hooks (after_edit_snippet, after_create_snippet and after_delete_snippet) 2020-05-14 20:47:36 +10:00
Cameron Lamb 55476426db Fix typo in ModelAdminGroup example 2020-05-14 20:37:34 +10:00
Robert Rollins 982b1d60a4 Page can_move permission method to ignore bulk_delete permission check
* bulk_delete exists to avoid allowing users to delete a whole lot of pages all at once by mistake, when they think they're just deleting one. However, the move/delete analogue breaks down when you're talking about moving an entire subtree, because you're *not* directly altering the children of the moved Page.
2020-05-10 21:12:24 +10:00
Brylie Christopher Oxley ff37ad6ab9 Add 'add_redirect' static method to Redirect
* This method was inspired by a Lacey Williams Henschel (@williln) presentation at Wagtail Space US 2018, called  'What the Wagtail docs don't tell you'. https://www.youtube.com/watch?v=PCkxBNXWM64&t=1220s
* Add docs section reference/contrib/redirects
2020-05-10 18:48:33 +10:00
Timothy Bautista ee99f91aa5 Add select_related to public_q query
* Prevents n+1 query count when getting a list of pages with view restrictions
* Add query count checks to public/not_public tests
2020-05-10 17:28:07 +10:00
Eric Phetteplace 20790f4c96 improve Adding Reports documentation
* `reverse` was used but not imported in the wagtail_hooks.py examples, causing them to be invalid
* I switched the Django `url` calls to use `path` instead since that seems both cleaner and officially recommended, the url function is "likely to be deprecated in a future release" per Django docs and  `path` is starting to replace it in urls.py files now
2020-05-10 17:15:32 +10:00
LB d88dae75ae Fix back tick usage in changelog/release notes 2020-05-10 17:11:36 +10:00
Neal Todd 2b35a852fe Add Rustface to the feature detection docs (images) 2020-05-10 17:09:33 +10:00