Wykres commitów

2831 Commity (1442d7ddf2bf334c25feca31a171f9ae69c99561)

Autor SHA1 Wiadomość Data
Andy Babic 9fa2ba939d Release notes for #5932 2020-04-03 22:01:08 +01:00
Andy Babic db8ab0875d Update BaseSetting to make it easier to utilise QuerySet.select_related() for more complex settings which reference related objects (such as pages) 2020-04-03 22:01:08 +01:00
Andy Babic e9371f45c7 Release notes for #5931 2020-04-03 21:28:13 +01:00
Andy Babic 18118f54b6 Update docs 2020-04-03 21:28:13 +01:00
Andy Chosak 3797132b4d Allow ListBlocks to leverage child bulk_to_python
Currently a select set of StreamField blocks like PageChooserBlock
expose a bulk_to_python method that is used to optimize their
retrieval from the database. As reported in issue 5926, ListBlock could
take advantage of this so that its child items are loaded at once,
instead of one at a time.

This change modifies how ListBlock.to_python works so that it calls its
child block's bulk_to_python, if defined. This allows for a single query
instead of one query per child item.

Note that this change doesn't add bulk_to_python to ListBlock itself,
meaning that individual ListBlocks in a StreamField or StructBlock are
still retrieved independently. But it does optimize the lookup for each
ListBlock.
2020-04-03 09:31:56 -04:00
Mohamed Feddad bb2e460c0b Replace deprecated ugettext, ungettext with gettext and ngettext. (#5907) 2020-04-02 17:15:26 +01:00
Tom Dyson 8c1a234f13 Remove our outdated preferences for deployment 2020-03-25 14:31:35 +00:00
Karran Besen 36e777418f Fix: Hide empty 'view live' links 2020-03-20 14:33:09 -04:00
Matt Westcott 3f86de27e0 Document AdminOnlyMenuItem in hooks documentation 2020-03-19 17:57:52 +00:00
Matt Westcott 205249b317 Release note for #5884 2020-03-19 17:49:33 +00:00
jacobtoppm 5e95e91226 Add AdminOnlyMenuItem and update custom report documentation to use it 2020-03-19 17:47:37 +00:00
jacobtoppm 587ccdc8b0 Add complete report example 2020-03-19 17:47:30 +00:00
jacobtoppm cbe3058794 Add documentation on how to add custom reports 2020-03-19 17:47:17 +00:00
Paulo 494260f8ee Fixed #5537 -- Fetch deferred stream fields from db (#5661) 2020-03-19 17:20:22 +00:00
Frantisek Holop fc0cf64ac6 Be more specific regarding the cached loader. (#5754)
Be more explicit about not needing to enable the `cached.Loader`
manually, unless using some custom loaders.
2020-03-19 17:01:29 +00:00
Michał (Quadric) Sieradzki 5e2d12b518 Add scope attribute to TableBlock generated tables for visually impaired users (#5865) 2020-03-19 16:50:55 +00:00
Michał (Quadric) Sieradzki 06fbde14b3 fix display issue on snippet edit view (#5883) 2020-03-19 16:44:34 +00:00
Fidel Ramos 0ccfe9568f Fix image resizing failing on slim images
Image operations sometimes calculate a target width or height of zero, which
make Willow raise a ValueError.

If an user uploads one such image it's possible to break the whole Wagtail
image manager/picker/uploader for all users.

The fix is to use a minimum of 1 pixel for either the target height or the
width. The image might lose some aspect ratio, but it's better than an
exception.
2020-03-19 16:39:20 +00:00
Matt Westcott 526649008d Release note for #5870 2020-03-19 16:12:40 +00:00
jacobtoppm 12d5edcef6 Add heading option to panels reference 2020-03-19 16:10:30 +00:00
Matt Westcott f83977c291 Add cache to speed up compiling media declarations for stream blocks
As proposed by @pimarc in https://github.com/wagtail/wagtail/issues/3062#issuecomment-586331423
2020-03-18 16:12:46 +00:00
Matt Westcott a34d509f7e Release note for #5880 2020-03-13 17:42:11 +00:00
jacobtoppm b3e5278a1b Remove spreadsheet export setting, and allow a user to select format via a dropdown instead 2020-03-13 17:33:22 +00:00
jacobtoppm fbead4549b Add documentation for spreadsheet format setting and new modeladmin features 2020-03-13 17:33:20 +00:00
Matt Westcott 98c2aefbe8 Revert "Allow url punctuation as defined in RFC 3986 section 2.3"
This reverts commit 08ef3f4840. Reverting as it breaks serving static files with whitenoise.

Conflicts:
	CHANGELOG.txt
	docs/releases/2.9.rst
2020-03-10 15:51:31 +00:00
Andy Chosak 17e09fee76
Fix quotes in ModelAdmin documentation
Building the docs currently generates a warning:

wagtail/docs/reference/contrib/modeladmin/indexview.rst:423: WARNING: Could not lex literal_block as "python". Highlighting skipped.

This is due to use of backticks instead of single quotes on this page:

https://docs.wagtail.io/en/v2.8/reference/contrib/modeladmin/indexview.html#modeladmin-get-queryset

In practice this doesn't seem to actually break highlighting, but it's still good to fix.
2020-03-04 13:21:53 -05:00
Matt Westcott 7dae758ea4 Release note for #5845 2020-03-04 11:53:03 +00:00
Storm Heg 08ef3f4840 Allow url punctuation as defined in RFC 3986 section 2.3 2020-03-03 17:38:07 +00:00
stevelyall babcbb7f80 Add Vidyard to oEmbed provider whitelist 2020-03-03 17:06:05 +00:00
Casper 19f50c72ce Hide preview button when preview_modes is empty 2020-03-03 16:20:23 +00:00
Matt Westcott 122575d2ee Release note for #5848 2020-02-26 14:11:17 +00:00
Matt Westcott 09a2ccf8cc Documentation for custom tag models 2020-02-26 14:10:21 +00:00
Maylon Pedroso 78cc81c505 Set context variable to None if no image provided to image templatetag 2020-02-25 23:16:52 +00:00
dt a6fb0762a8 Mention options for schema in sitemap
Add clear way to change schema in `sitemap.xml` to https on `sitemap`
documentation page
2020-02-25 21:33:21 +00:00
Matt Westcott 8931312025 Release note for #5827 2020-02-21 17:29:07 +00:00
Matt Westcott 4df455ea9f
Remove support for Django 2.1 (#5840) 2020-02-18 13:55:53 +00:00
Matt Westcott a97256a4f7 Release note for #5837 2020-02-18 11:45:53 +00:00
Matt Westcott 51d8433b6b Release note for #5787 2020-02-17 12:30:10 +00:00
Matt Westcott 96cd5c066d Update wording
Also move warning so it occurs on server startup rather than first request
2020-02-17 12:06:19 +00:00
Matt Westcott 7b6a89c155 Upgrade consideration note re SiteMiddleware deprecation 2020-02-17 12:06:19 +00:00
Matt Westcott 4950158e46 Remove remaining references to request.site 2020-02-17 12:06:19 +00:00
Matt Westcott 76cd26b099 Remove remaining references to SiteMiddleware 2020-02-17 12:06:19 +00:00
Matt Westcott f34891fbd3 Update docs to cover wagtail_site tag, find_for_request and deprecation of SiteMiddleware 2020-02-17 12:06:18 +00:00
Matt Westcott 5eec4d954e Deprecate SiteMiddleware (#3834, #5332, #5673)
Squashed commit of the following:

commit 6ff78d0271ae9bb8be20edc77acc046b7ecd1190
Merge: cbb5575 b7872e3
Author: Matt Westcott <matt@west.co.tt>
Date:   Fri Jan 24 10:41:00 2020 +0000

    Merge branch 'master' into sitemiddleware-rebase-2

    Conflicts:
    	docs/reference/settings.rst
    	wagtail/api/v2/endpoints.py
    	wagtail/api/v2/filters.py
    	wagtail/api/v2/serializers.py

commit cbb5575fd8
Author: timothy@bttrcode <timothy@bttrcode.nl>
Date:   Sun Nov 3 02:30:00 2019 +0100

    Update branch, resolve conflicts, clean up

commit 6188742cfe
Merge: 4b4dee6 1c1341e
Author: timothy@bttrcode <timothy@bttrcode.nl>
Date:   Sun Nov 3 01:48:21 2019 +0100

    Resolve merge conflicts

commit 4b4dee6c47
Author: timothy@bttrcode <timothy@bttrcode.nl>
Date:   Sun Nov 3 01:42:37 2019 +0100

    Temporarily add Pipfile and yarn file

commit 540dff380b
Merge: 4a93424 0d2442f
Author: timothy@bttrcode <timothy@bttrcode.nl>
Date:   Fri Sep 27 20:22:00 2019 +0200

    Merge branch 'master' of https://github.com/aritas1/wagtail into aritasmaster

commit 0d2442fc1f
Author: Daniel <mail@aritas.de>
Date:   Wed Jun 26 03:01:44 2019 +0200

    clean tests and add ALLOWED_HOSTS globally

commit b7e6b8e655
Author: Daniel <mail@aritas.de>
Date:   Wed Jun 26 03:00:07 2019 +0200

    change context processor to be lazy

commit b16250fce9
Author: Daniel <mail@aritas.de>
Date:   Tue May 28 21:37:05 2019 +0200

    update SiteMiddleware documentation

commit 4be243f64d
Author: Daniel <mail@aritas.de>
Date:   Tue May 28 20:52:08 2019 +0200

    fix linting

commit 33151817a0
Author: Daniel <mail@aritas.de>
Date:   Tue May 28 19:11:47 2019 +0200

    add wagtail_site template tag

commit 38b304105a
Author: Daniel <mail@aritas.de>
Date:   Tue May 28 16:19:22 2019 +0200

    update tests for deprecated SiteMiddleware

commit f745aae9d0
Author: Daniel <mail@aritas.de>
Date:   Tue May 28 16:11:58 2019 +0200

    change Site finding mechanism to be independent of deprecated SiteMiddleware
2020-02-17 12:06:18 +00:00
Andy Babic 1c2719720d Release notes for #5810 2020-02-16 21:43:36 +00:00
Andy Babic 061f0e2571 Release notes for #5828 2020-02-16 21:18:11 +00:00
Samir Shah dd4a04f843 Skip field validation when unpublishing pages. 2020-02-16 21:05:51 +00:00
Thibaud Colas 676503023d
Mention docker-wagtail-develop in developing docs (#5820)
Based on discussion in #bristol-sprint on Slack. See also https://github.com/wagtail/vagrant-wagtail-develop/pull/25.
2020-02-12 14:11:40 +01:00
jacobtoppm 3ac230f821 Prevent 'status' banners for page locking being doubled up on POST requests (#5818) 2020-02-11 09:25:09 +00:00
Matt Westcott 4314f3d1a1
Implement MultipleChoiceBlock (rebase of #5592) (#5819)
* Implement MultipleChoiceBlock (squashed commits from #5592)

* Omit widget from frozen kwargs

* Rename get_callable_choices to indicate it is an internal method

* Add release notes for MultipleChoiceBlock
2020-02-10 22:24:49 +00:00