Wykres commitów

10698 Commity (cbbeae0ac5e6bea0aeff4533d421548b35eda0dd)

Autor SHA1 Wiadomość Data
Matt Westcott cbbeae0ac5 Add Kevin Breen to contributors 2021-04-19 10:02:19 +01:00
Matt Westcott 5c7a60977c Disallow links with unrecognised protocols in contentstate 2021-04-19 10:01:14 +01:00
Matt Westcott 4ddfb48096 Fill in release date for 2.11.6 2021-03-05 13:25:59 +00:00
Matt Westcott a67d129e89 Version bump to 2.11.6 2021-03-05 13:23:59 +00:00
Matt Westcott 1a40d97506 Fix migration dependency in i18n test migration 2021-03-05 12:38:06 +00:00
Karl Hobley cb0c643d83 Fix copy_for_translation on inherited and clusterable models 2021-03-05 12:32:00 +00:00
Matt Westcott 2d66f4979c Release note for #6818 in 2.11.6 2021-03-05 12:30:53 +00:00
Matt Westcott f374ebda1d Release note for #6872 in 2.11.6 2021-03-05 11:40:03 +00:00
Matt Westcott 4344d8262a Prevent error on page editing after changing LANGUAGE_CODE
Fixes #6860 as per https://github.com/wagtail/wagtail/issues/6860#issuecomment-790599722.
2021-03-05 11:37:32 +00:00
Matt Westcott 6e20cecb77 Release note for #6871 in 2.11.6 2021-03-04 13:59:07 +00:00
Matt Westcott 68e9d4903f Unpin django-treebeard - allow all up to 5.0
Fixes #6820. Migration issue has been fixed in 4.5.1, so just exclude 4.5
2021-03-04 13:57:24 +00:00
Matt Westcott 92bd56197e Release note for #6854 in 2.11.6 2021-03-04 13:30:28 +00:00
Karl Hobley 2581a2bc6d Fix crash when copying an alias page 2021-03-04 13:28:42 +00:00
Matt Westcott 8b71a13f0a Release note for #6822 in 2.11.5 2021-02-18 09:15:19 +00:00
Matt Westcott 70e3e79f08 Version bump to 2.11.5 2021-02-18 09:12:45 +00:00
Matt Westcott 4a4bb69ed1 Pin treebeard to <4.5
Addresses #6820. Treebeard 4.5 introduces a model change that will generate a phantom _auto migration the next time developers run makemigrations - this will cause migration dependency issues when it's absent on other environments, or on subsequent Wagtail upgrades. We need to coordinate the upgrade to Treebeard 4.5 with a corresponding migration shipped with Wagtail.
2021-02-18 09:00:22 +00:00
Matt Westcott 381245c81c Fill in release date for 2.11.4 2021-02-16 12:36:03 +00:00
Matt Westcott 7803ebcd63 Release note for #6757 in 2.11.4 2021-02-16 12:29:04 +00:00
Matt Westcott a396875d5c Just fetch alias_of when checking ancestor view permissions 2021-02-16 12:23:31 +00:00
Karl Hobley 74db5e4e3b Make privacy rules also apply to aliases 2021-02-16 12:23:31 +00:00
Karl Hobley 0d8d9f56b5 Publish aliases when the source page is published
Fixes # 6749

Aliases are currently not being published if they were created in draft
2021-02-03 10:50:57 +00:00
Matt Westcott 0827c8afbd Version bump to 2.11.4 2021-02-03 10:49:19 +00:00
Matt Westcott 3f940737ce Release notes for #6713 and #6756 in 2.11.4 2021-02-03 10:48:57 +00:00
Helder Correia 7e6b40c09c Fix typo 2021-01-29 14:12:27 +00:00
Matt Westcott 69f3f5c0d2 Fill in release date for 2.11.3 2020-12-10 17:58:32 +00:00
Matt Westcott f47a6ddb83 Update translator credits 2020-12-10 17:56:38 +00:00
Matt Westcott 949a68342e Fetch new translations from Transifex 2020-12-10 17:53:21 +00:00
Matt Westcott 7c2ae57a2d Prevent error on publish check in create_log_entries_from_revisions (#6628)
Fixes #6498
2020-12-10 17:35:47 +00:00
Matt Westcott 7fd9a49e9c Fix combining locale/translation_of API filters with search (#6627)
Fixes #6626
2020-12-10 16:27:01 +00:00
Matt Westcott d249e60152 Release note for #6572 2020-12-09 16:27:46 +00:00
Andreas Morgenstern 85423cb100 Allows to mark the language names as translation strings (#6572)
* Force __str__ of Locale to be a string

* Put some translation proxies in to test settings

* Fixed import in wrong place

* Added test for gettext in LANGUAGES to the Locale model

Co-authored-by: Andreas M <am@zauberberg-medien.de>
2020-12-09 16:25:23 +00:00
Matt Westcott e45f188f6c version bump to 2.11.3 2020-12-08 16:03:37 +00:00
Matt Westcott 27758937a6 Additional release notes for #6559 2020-12-08 16:03:06 +00:00
Dan Braghis 3e24b5b398 Fix missing locale in the project template's homepage migration 2020-12-08 16:01:52 +00:00
Matt Westcott bf659bd4a9 revert to @allcaps's original approach to including robots.txt 2020-12-04 13:21:49 +00:00
Matt Westcott 7a777b4caa try a different approach for including custom robots.txt
Conflicts:
	docs/_html_extra/robots.txt
	docs/conf.py
2020-12-04 13:06:52 +00:00
Matt Westcott ecf3950426 update translators list 2020-11-17 15:57:48 +00:00
Matt Westcott 49f3e5be8e Generate new strings for translation 2020-11-17 15:41:01 +00:00
Matt Westcott 327a50f9cd Fetch new translations from Transifex 2020-11-17 15:34:34 +00:00
Matt Westcott 0d5839cce0 Fill in release date for 2.11.2 2020-11-17 15:21:00 +00:00
Cynthia Kiser 2fdb2e8aef Add custom oEmbed finders for Facebook and Instagram (#6550)
Move code from https://www.codista.com/en/blog/wagtail-instagram-new-oembed-api/ into core

Add custom oembed finder for Facebook

Apply suggestions from @originell's code review

Co-authored-by: Luis Nell <luis.nell@codista.com>

FIXUP More places to change the exception name (and a linter fix)

Extend Instagram/Facebook tests to check HTTP request

Add documentation for omitscript parameter
2020-11-17 15:06:53 +00:00
Matt Westcott 28146e0015 Allow deleting the default locale (#6553)
Fixes #6533
2020-11-17 11:28:31 +00:00
Matt Westcott 734199b06a Release note for #6544 2020-11-16 17:16:19 +00:00
Karl Hobley fabc2a5e73 Fetch all pages of translations 2020-11-16 17:16:19 +00:00
Karl Hobley 4115ced0ac Fix performance issue in React explorer when there are many languages
Requesting translations to be nested with each page causes major
performance problems when there are many languages. Mozilla have 61
languages, each with a separate homepage that's a translation of the
others, so the response for this query contains details of 61 * 61 pages
for them.

This isn't actually required since we only need to know the translations
if the user navigates into a page, and the translations are requested
again anyway by the getPageTranslations function.
2020-11-16 17:16:18 +00:00
Jérôme Lebleu 6c967dfb8e Fix header icon name in settings' edit view (#6554) 2020-11-16 15:03:14 +00:00
Matt Westcott 786b91440c Handle get_supported_language_variant returning a language variant not in LANGUAGES (#6547)
* Handle get_supported_language_variant returning a language variant not in LANGUAGES

Fixes #6539

* Handle LANGUAGE_CODE that isn't in LANGUAGES

* Release note for #6547
2020-11-16 11:51:57 +00:00
Matt Westcott 19cf596af9 Gracefully handle missing Locale records on Locale.get_active and .localized (#6549)
Fixes #6540
There are various code paths where Page.localized and similar can be called even when WAGTAIL_I18N_ENABLED is False, and since it's entirely likely that hand-rolled i18n mechanisms and ad-hoc configuration changes (e.g changing LANGUAGE_CODE) will break the Locale model's assumptions about how things are meant to work, we need to provide sensible fallback behaviour for when the current active locale, or the default locale as per LANGUAGE_CODE, does not have a corresponding Locale record:

* Locale.get_active() will fall back on the default LANGUAGE_CODE locale, or raise Locale.DoesNotExist if that one does not exist either;
* TranslatableMixin.localized (along with Page.localized and Page.localized_draft) will handle a missing Locale record by falling back on the default LANGUAGE_CODE locale, or failing that, returning self.
2020-11-16 10:31:42 +00:00
Matt Westcott 9b0fd41e8b Version bump to 2.11.2 2020-11-13 17:13:18 +00:00
Karl Hobley a944e2d3ae Fetch the depth field of page translations on the edit view
This field is used in the `.can_edit()` permission check
2020-11-13 17:13:00 +00:00