wagtail 6.4__py3-none-any.whl → 6.4.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. wagtail/__init__.py +1 -1
  2. wagtail/admin/filters.py +9 -2
  3. wagtail/admin/locale/en_IN/LC_MESSAGES/djangojs.po +2 -2
  4. wagtail/admin/locale/es_VE/LC_MESSAGES/djangojs.po +2 -2
  5. wagtail/admin/locale/he_IL/LC_MESSAGES/djangojs.po +2 -2
  6. wagtail/admin/locale/hr_HR/LC_MESSAGES/djangojs.po +2 -2
  7. wagtail/admin/locale/is_IS/LC_MESSAGES/djangojs.po +2 -2
  8. wagtail/admin/locale/it/LC_MESSAGES/django.po +3 -3
  9. wagtail/admin/locale/nb/LC_MESSAGES/djangojs.po +2 -2
  10. wagtail/admin/locale/nl/LC_MESSAGES/django.mo +0 -0
  11. wagtail/admin/locale/nl/LC_MESSAGES/django.po +1 -1
  12. wagtail/admin/locale/pl/LC_MESSAGES/django.po +3 -2
  13. wagtail/admin/locale/pt_BR/LC_MESSAGES/djangojs.po +2 -2
  14. wagtail/admin/locale/sk_SK/LC_MESSAGES/djangojs.po +2 -2
  15. wagtail/admin/locale/tr_TR/LC_MESSAGES/djangojs.po +2 -2
  16. wagtail/admin/locale/zh_Hans/LC_MESSAGES/djangojs.po +2 -2
  17. wagtail/admin/locale/zh_Hant/LC_MESSAGES/djangojs.po +2 -2
  18. wagtail/admin/static/wagtailadmin/css/core.css +1 -1
  19. wagtail/admin/static/wagtailadmin/js/wagtailadmin.js +1 -1
  20. wagtail/admin/templates/wagtailadmin/home/upgrade_notification.html +1 -0
  21. wagtail/admin/tests/test_upgrade_notification.py +3 -0
  22. wagtail/contrib/search_promotions/locale/ca/LC_MESSAGES/django.po +3 -3
  23. wagtail/contrib/search_promotions/locale/cy/LC_MESSAGES/django.po +3 -3
  24. wagtail/contrib/search_promotions/locale/de/LC_MESSAGES/django.po +3 -3
  25. wagtail/contrib/search_promotions/locale/fr/LC_MESSAGES/django.po +3 -3
  26. wagtail/contrib/search_promotions/locale/gl/LC_MESSAGES/django.po +3 -3
  27. wagtail/contrib/search_promotions/locale/hr_HR/LC_MESSAGES/django.po +3 -3
  28. wagtail/contrib/search_promotions/locale/hu/LC_MESSAGES/django.po +3 -3
  29. wagtail/contrib/search_promotions/locale/is_IS/LC_MESSAGES/django.po +3 -3
  30. wagtail/contrib/search_promotions/locale/nl/LC_MESSAGES/django.po +3 -3
  31. wagtail/contrib/search_promotions/locale/ro/LC_MESSAGES/django.po +3 -3
  32. wagtail/contrib/search_promotions/locale/ru/LC_MESSAGES/django.po +3 -3
  33. wagtail/contrib/search_promotions/locale/sl/LC_MESSAGES/django.po +3 -3
  34. wagtail/contrib/search_promotions/locale/ug/LC_MESSAGES/django.po +3 -3
  35. wagtail/contrib/simple_translation/locale/hr_HR/LC_MESSAGES/django.po +2 -2
  36. wagtail/contrib/simple_translation/locale/is_IS/LC_MESSAGES/django.po +2 -2
  37. wagtail/contrib/simple_translation/locale/nb/LC_MESSAGES/django.po +2 -2
  38. wagtail/contrib/simple_translation/locale/pt_BR/LC_MESSAGES/django.po +2 -2
  39. wagtail/contrib/simple_translation/locale/zh_Hans/LC_MESSAGES/django.po +2 -2
  40. wagtail/contrib/simple_translation/locale/zh_Hant/LC_MESSAGES/django.po +2 -2
  41. wagtail/contrib/typed_table_block/locale/is_IS/LC_MESSAGES/django.po +2 -2
  42. wagtail/contrib/typed_table_block/locale/pt_BR/LC_MESSAGES/django.po +2 -2
  43. wagtail/contrib/typed_table_block/locale/zh_Hans/LC_MESSAGES/django.po +2 -2
  44. wagtail/contrib/typed_table_block/locale/zh_Hant/LC_MESSAGES/django.po +2 -2
  45. wagtail/images/signal_handlers.py +1 -1
  46. wagtail/locale/de/LC_MESSAGES/django.po +2 -2
  47. wagtail/locale/fi/LC_MESSAGES/django.po +2 -2
  48. wagtail/locale/pt_PT/LC_MESSAGES/django.po +2 -2
  49. wagtail/locales/locale/he_IL/LC_MESSAGES/django.po +2 -2
  50. wagtail/locales/locale/hr_HR/LC_MESSAGES/django.po +2 -2
  51. wagtail/locales/locale/is_IS/LC_MESSAGES/django.po +2 -2
  52. wagtail/locales/locale/nb/LC_MESSAGES/django.po +2 -2
  53. wagtail/locales/locale/pt_BR/LC_MESSAGES/django.po +2 -2
  54. wagtail/locales/locale/sk_SK/LC_MESSAGES/django.po +2 -2
  55. wagtail/locales/locale/tr_TR/LC_MESSAGES/django.po +2 -2
  56. wagtail/locales/locale/zh_Hans/LC_MESSAGES/django.po +2 -2
  57. wagtail/locales/locale/zh_Hant/LC_MESSAGES/django.po +2 -2
  58. wagtail/models/__init__.py +1 -1
  59. wagtail/search/backends/base.py +6 -5
  60. wagtail/search/backends/database/fallback.py +3 -0
  61. wagtail/search/backends/database/mysql/mysql.py +3 -0
  62. wagtail/search/backends/database/postgres/postgres.py +3 -0
  63. wagtail/search/backends/database/sqlite/sqlite.py +3 -0
  64. wagtail/search/backends/elasticsearch7.py +3 -0
  65. wagtail/search/signal_handlers.py +1 -1
  66. wagtail/search/tests/test_backends.py +7 -0
  67. wagtail/search/tests/test_index_functions.py +27 -1
  68. wagtail/signal_handlers.py +1 -1
  69. wagtail/test/testapp/migrations/0046_advertwithcustomuuidprimarykey_page.py +25 -0
  70. wagtail/test/testapp/models.py +7 -1
  71. wagtail/tests/test_reference_index.py +13 -0
  72. wagtail/users/locale/fi/LC_MESSAGES/django.po +2 -2
  73. wagtail-6.4.1.dist-info/METADATA +77 -0
  74. {wagtail-6.4.dist-info → wagtail-6.4.1.dist-info}/RECORD +78 -77
  75. {wagtail-6.4.dist-info → wagtail-6.4.1.dist-info}/WHEEL +1 -1
  76. wagtail-6.4.dist-info/METADATA +0 -77
  77. {wagtail-6.4.dist-info → wagtail-6.4.1.dist-info}/LICENSE +0 -0
  78. {wagtail-6.4.dist-info → wagtail-6.4.1.dist-info}/entry_points.txt +0 -0
  79. {wagtail-6.4.dist-info → wagtail-6.4.1.dist-info}/top_level.txt +0 -0
wagtail/__init__.py CHANGED
@@ -6,7 +6,7 @@ from wagtail.utils.version import get_semver_version, get_version
6
6
 
7
7
  # major.minor.patch.release.number
8
8
  # release must be one of alpha, beta, rc, or final
9
- VERSION = (6, 4, 0, "final", 1)
9
+ VERSION = (6, 4, 1, "final", 1)
10
10
 
11
11
  __version__ = get_version(VERSION)
12
12
 
wagtail/admin/filters.py CHANGED
@@ -94,8 +94,15 @@ class FilteredModelChoiceFilter(django_filters.ModelChoiceFilter):
94
94
  class LocaleFilter(django_filters.ChoiceFilter):
95
95
  def filter(self, qs, language_code):
96
96
  if language_code:
97
- locale = Locale.objects.filter(language_code=language_code)
98
- return qs.filter(locale_id=locale.values_list("pk", flat=True)[:1])
97
+ try:
98
+ locale_id = (
99
+ Locale.objects.filter(language_code=language_code)
100
+ .values_list("pk", flat=True)
101
+ .get()
102
+ )
103
+ except Locale.DoesNotExist:
104
+ return qs.none()
105
+ return qs.filter(locale_id=locale_id)
99
106
  return qs
100
107
 
101
108
 
@@ -5,8 +5,8 @@
5
5
  msgid ""
6
6
  msgstr ""
7
7
  "Last-Translator: Neeraj PY, 2023\n"
8
- "Language-Team: English (India) (https://app.transifex.com/torchbox/"
9
- "teams/8009/en_IN/)\n"
8
+ "Language-Team: English (India) (https://app.transifex.com/torchbox/teams/"
9
+ "8009/en_IN/)\n"
10
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
11
  "Language: en_IN\n"
12
12
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
@@ -5,8 +5,8 @@
5
5
  msgid ""
6
6
  msgstr ""
7
7
  "Last-Translator: Rodrigo Yanez, 2023\n"
8
- "Language-Team: Spanish (Venezuela) (https://app.transifex.com/torchbox/"
9
- "teams/8009/es_VE/)\n"
8
+ "Language-Team: Spanish (Venezuela) (https://app.transifex.com/torchbox/teams/"
9
+ "8009/es_VE/)\n"
10
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
11
  "Language: es_VE\n"
12
12
  "Plural-Forms: nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? "
@@ -7,8 +7,8 @@
7
7
  msgid ""
8
8
  msgstr ""
9
9
  "Last-Translator: lior abazon <abazon@v15.org.il>, 2025\n"
10
- "Language-Team: Hebrew (Israel) (https://app.transifex.com/torchbox/"
11
- "teams/8009/he_IL/)\n"
10
+ "Language-Team: Hebrew (Israel) (https://app.transifex.com/torchbox/teams/"
11
+ "8009/he_IL/)\n"
12
12
  "Content-Type: text/plain; charset=UTF-8\n"
13
13
  "Language: he_IL\n"
14
14
  "Plural-Forms: nplurals=3; plural=(n == 1 && n % 1 == 0) ? 0 : (n == 2 && n % "
@@ -7,8 +7,8 @@
7
7
  msgid ""
8
8
  msgstr ""
9
9
  "Last-Translator: Dino Aljević <dino8890@protonmail.com>, 2025\n"
10
- "Language-Team: Croatian (Croatia) (https://app.transifex.com/torchbox/"
11
- "teams/8009/hr_HR/)\n"
10
+ "Language-Team: Croatian (Croatia) (https://app.transifex.com/torchbox/teams/"
11
+ "8009/hr_HR/)\n"
12
12
  "Content-Type: text/plain; charset=UTF-8\n"
13
13
  "Language: hr_HR\n"
14
14
  "Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
@@ -7,8 +7,8 @@
7
7
  msgid ""
8
8
  msgstr ""
9
9
  "Last-Translator: Arnar Tumi Þorsteinsson <arnartumi@gmail.com>, 2025\n"
10
- "Language-Team: Icelandic (Iceland) (https://app.transifex.com/torchbox/"
11
- "teams/8009/is_IS/)\n"
10
+ "Language-Team: Icelandic (Iceland) (https://app.transifex.com/torchbox/teams/"
11
+ "8009/is_IS/)\n"
12
12
  "Content-Type: text/plain; charset=UTF-8\n"
13
13
  "Language: is_IS\n"
14
14
  "Plural-Forms: nplurals=2; plural=(n % 10 != 1 || n % 100 == 11);\n"
@@ -2143,9 +2143,9 @@ msgid ""
2143
2143
  "in your web browser</a>."
2144
2144
  msgstr ""
2145
2145
  " Wagtail necessita Javascript per essere utilizzato, ma al momento è "
2146
- "disabilitato. <br /> Qua trovi le <a href=\"https://www.enable-javascript."
2147
- "com/\" target=\"_blank\" rel=\"noreferrer\">istruzioni su come abilitare "
2148
- "JavaScript nel tuo browser</a>."
2146
+ "disabilitato. <br /> Qua trovi le <a href=\"https://www.enable-"
2147
+ "javascript.com/\" target=\"_blank\" rel=\"noreferrer\">istruzioni su come "
2148
+ "abilitare JavaScript nel tuo browser</a>."
2149
2149
 
2150
2150
  msgid "Skip to main content"
2151
2151
  msgstr "Salta al contenuto principale"
@@ -9,8 +9,8 @@
9
9
  msgid ""
10
10
  msgstr ""
11
11
  "Last-Translator: Eirik Krogstad <eirikkr@gmail.com>, 2025\n"
12
- "Language-Team: Norwegian Bokmål (https://app.transifex.com/torchbox/"
13
- "teams/8009/nb/)\n"
12
+ "Language-Team: Norwegian Bokmål (https://app.transifex.com/torchbox/teams/"
13
+ "8009/nb/)\n"
14
14
  "Content-Type: text/plain; charset=UTF-8\n"
15
15
  "Language: nb\n"
16
16
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
@@ -3438,7 +3438,7 @@ msgid "View page history for '%(title)s'"
3438
3438
  msgstr "Bekijk de versiegeschiedenis voor '%(title)s'"
3439
3439
 
3440
3440
  msgid "Sort menu order"
3441
- msgstr "Sorteer menu volgorde"
3441
+ msgstr "Sortering aanpassen"
3442
3442
 
3443
3443
  #, python-format
3444
3444
  msgid "Change ordering of child pages of '%(title)s'"
@@ -2179,8 +2179,9 @@ msgid ""
2179
2179
  "in your web browser</a>."
2180
2180
  msgstr ""
2181
2181
  "JavaScript jest wymagany by korzystać z Wagtail, ale aktualnie jest "
2182
- "wyłączony.<br /> Tutaj znajdziejsz <a href=\"https://www.enable-javascript."
2183
- "com/\" target=\"_blank\" rel=\"noreferrer\">instrukcje jak go uruchomić</a>."
2182
+ "wyłączony.<br /> Tutaj znajdziejsz <a href=\"https://www.enable-"
2183
+ "javascript.com/\" target=\"_blank\" rel=\"noreferrer\">instrukcje jak go "
2184
+ "uruchomić</a>."
2184
2185
 
2185
2186
  msgid "Skip to main content"
2186
2187
  msgstr "Pomiń do głównej zawartości"
@@ -15,8 +15,8 @@
15
15
  msgid ""
16
16
  msgstr ""
17
17
  "Last-Translator: Luiz Boaretto <lboaretto@gmail.com>, 2025\n"
18
- "Language-Team: Portuguese (Brazil) (https://app.transifex.com/torchbox/"
19
- "teams/8009/pt_BR/)\n"
18
+ "Language-Team: Portuguese (Brazil) (https://app.transifex.com/torchbox/teams/"
19
+ "8009/pt_BR/)\n"
20
20
  "Content-Type: text/plain; charset=UTF-8\n"
21
21
  "Language: pt_BR\n"
22
22
  "Plural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % "
@@ -7,8 +7,8 @@
7
7
  msgid ""
8
8
  msgstr ""
9
9
  "Last-Translator: dellax <michalnebbia@gmail.com>, 2025\n"
10
- "Language-Team: Slovak (Slovakia) (https://app.transifex.com/torchbox/"
11
- "teams/8009/sk_SK/)\n"
10
+ "Language-Team: Slovak (Slovakia) (https://app.transifex.com/torchbox/teams/"
11
+ "8009/sk_SK/)\n"
12
12
  "Content-Type: text/plain; charset=UTF-8\n"
13
13
  "Language: sk_SK\n"
14
14
  "Plural-Forms: nplurals=4; plural=(n % 1 == 0 && n == 1 ? 0 : n % 1 == 0 && n "
@@ -9,8 +9,8 @@
9
9
  msgid ""
10
10
  msgstr ""
11
11
  "Last-Translator: Ragıp Ünal <ragip@ragipunal.com>, 2025\n"
12
- "Language-Team: Turkish (Turkey) (https://app.transifex.com/torchbox/"
13
- "teams/8009/tr_TR/)\n"
12
+ "Language-Team: Turkish (Turkey) (https://app.transifex.com/torchbox/teams/"
13
+ "8009/tr_TR/)\n"
14
14
  "Content-Type: text/plain; charset=UTF-8\n"
15
15
  "Language: tr_TR\n"
16
16
  "Plural-Forms: nplurals=2; plural=(n > 1);\n"
@@ -14,8 +14,8 @@
14
14
  msgid ""
15
15
  msgstr ""
16
16
  "Last-Translator: Ford Guo <agile.guo@gmail.com>, 2025\n"
17
- "Language-Team: Chinese (China) (https://app.transifex.com/torchbox/"
18
- "teams/8009/zh_CN/)\n"
17
+ "Language-Team: Chinese (China) (https://app.transifex.com/torchbox/teams/"
18
+ "8009/zh_CN/)\n"
19
19
  "Content-Type: text/plain; charset=UTF-8\n"
20
20
  "Language: zh_CN\n"
21
21
  "Plural-Forms: nplurals=1; plural=0;\n"
@@ -9,8 +9,8 @@
9
9
  msgid ""
10
10
  msgstr ""
11
11
  "Last-Translator: Chih Wang <ihcgno@icloud.com>, 2025\n"
12
- "Language-Team: Chinese Traditional (https://app.transifex.com/torchbox/"
13
- "teams/8009/zh-Hant/)\n"
12
+ "Language-Team: Chinese Traditional (https://app.transifex.com/torchbox/teams/"
13
+ "8009/zh-Hant/)\n"
14
14
  "Content-Type: text/plain; charset=UTF-8\n"
15
15
  "Language: zh-Hant\n"
16
16
  "Plural-Forms: nplurals=1; plural=0;\n"