wagtail 6.0.1__py3-none-any.whl → 6.0.3__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 (199) hide show
  1. wagtail/__init__.py +1 -1
  2. wagtail/admin/locale/ca/LC_MESSAGES/django.mo +0 -0
  3. wagtail/admin/locale/ca/LC_MESSAGES/django.po +122 -0
  4. wagtail/admin/locale/es/LC_MESSAGES/django.mo +0 -0
  5. wagtail/admin/locale/es/LC_MESSAGES/django.po +6 -6
  6. wagtail/admin/locale/fr/LC_MESSAGES/django.mo +0 -0
  7. wagtail/admin/locale/fr/LC_MESSAGES/django.po +70 -3
  8. wagtail/admin/locale/he_IL/LC_MESSAGES/django.mo +0 -0
  9. wagtail/admin/locale/he_IL/LC_MESSAGES/django.po +2 -6
  10. wagtail/admin/locale/he_IL/LC_MESSAGES/djangojs.mo +0 -0
  11. wagtail/admin/locale/he_IL/LC_MESSAGES/djangojs.po +2 -2
  12. wagtail/admin/locale/hr_HR/LC_MESSAGES/django.mo +0 -0
  13. wagtail/admin/locale/hr_HR/LC_MESSAGES/django.po +4 -0
  14. wagtail/admin/locale/hu/LC_MESSAGES/django.mo +0 -0
  15. wagtail/admin/locale/hu/LC_MESSAGES/django.po +142 -2
  16. wagtail/admin/locale/it/LC_MESSAGES/django.mo +0 -0
  17. wagtail/admin/locale/it/LC_MESSAGES/django.po +80 -8
  18. wagtail/admin/locale/it/LC_MESSAGES/djangojs.mo +0 -0
  19. wagtail/admin/locale/it/LC_MESSAGES/djangojs.po +14 -2
  20. wagtail/admin/locale/lv/LC_MESSAGES/django.mo +0 -0
  21. wagtail/admin/locale/lv/LC_MESSAGES/django.po +154 -1
  22. wagtail/admin/locale/sl/LC_MESSAGES/django.mo +0 -0
  23. wagtail/admin/locale/sl/LC_MESSAGES/django.po +145 -2
  24. wagtail/admin/locale/sv/LC_MESSAGES/django.mo +0 -0
  25. wagtail/admin/locale/sv/LC_MESSAGES/django.po +77 -3
  26. wagtail/admin/locale/zh_Hant/LC_MESSAGES/django.mo +0 -0
  27. wagtail/admin/locale/zh_Hant/LC_MESSAGES/django.po +17 -1
  28. wagtail/admin/static/wagtailadmin/css/core.css +1 -1
  29. wagtail/admin/static/wagtailadmin/js/core.js +1 -1
  30. wagtail/admin/static/wagtailadmin/js/vendor.js +1 -1
  31. wagtail/admin/templates/wagtailadmin/admin_base.html +1 -0
  32. wagtail/admin/templates/wagtailadmin/collections/edit.html +0 -1
  33. wagtail/admin/templates/wagtailadmin/generic/form.html +1 -0
  34. wagtail/admin/templates/wagtailadmin/generic/index_results.html +8 -0
  35. wagtail/admin/templates/wagtailadmin/home/workflow_objects_to_moderate.html +0 -1
  36. wagtail/admin/templates/wagtailadmin/pages/_editor_js.html +0 -1
  37. wagtail/admin/templates/wagtailadmin/pages/index.html +0 -2
  38. wagtail/admin/templates/wagtailadmin/shared/headers/slim_header.html +1 -1
  39. wagtail/admin/tests/api/test_pages.py +26 -10
  40. wagtail/admin/tests/pages/test_page_search.py +39 -0
  41. wagtail/admin/tests/viewsets/test_model_viewset.py +45 -10
  42. wagtail/admin/views/generic/base.py +3 -0
  43. wagtail/admin/views/generic/models.py +27 -10
  44. wagtail/admin/views/pages/search.py +1 -0
  45. wagtail/admin/widgets/button.py +1 -2
  46. wagtail/contrib/forms/locale/he_IL/LC_MESSAGES/django.mo +0 -0
  47. wagtail/contrib/forms/locale/he_IL/LC_MESSAGES/django.po +2 -2
  48. wagtail/contrib/redirects/locale/fr/LC_MESSAGES/django.po +2 -2
  49. wagtail/contrib/redirects/locale/he_IL/LC_MESSAGES/django.mo +0 -0
  50. wagtail/contrib/redirects/locale/he_IL/LC_MESSAGES/django.po +2 -2
  51. wagtail/contrib/search_promotions/locale/fr/LC_MESSAGES/django.po +2 -2
  52. wagtail/contrib/search_promotions/locale/he_IL/LC_MESSAGES/django.mo +0 -0
  53. wagtail/contrib/search_promotions/locale/he_IL/LC_MESSAGES/django.po +2 -2
  54. wagtail/contrib/search_promotions/locale/hr_HR/LC_MESSAGES/django.mo +0 -0
  55. wagtail/contrib/search_promotions/locale/hr_HR/LC_MESSAGES/django.po +41 -2
  56. wagtail/contrib/search_promotions/locale/it/LC_MESSAGES/django.mo +0 -0
  57. wagtail/contrib/search_promotions/locale/it/LC_MESSAGES/django.po +9 -3
  58. wagtail/contrib/settings/locale/he_IL/LC_MESSAGES/django.mo +0 -0
  59. wagtail/contrib/settings/locale/he_IL/LC_MESSAGES/django.po +2 -2
  60. wagtail/contrib/settings/locale/tr/LC_MESSAGES/django.mo +0 -0
  61. wagtail/contrib/settings/locale/tr/LC_MESSAGES/django.po +6 -2
  62. wagtail/contrib/settings/tests/generic/test_admin.py +88 -1
  63. wagtail/contrib/settings/tests/site_specific/test_admin.py +92 -3
  64. wagtail/contrib/styleguide/locale/he_IL/LC_MESSAGES/django.mo +0 -0
  65. wagtail/contrib/styleguide/locale/he_IL/LC_MESSAGES/django.po +2 -2
  66. wagtail/contrib/styleguide/tests.py +8 -0
  67. wagtail/contrib/styleguide/views.py +1 -1
  68. wagtail/contrib/table_block/blocks.py +1 -1
  69. wagtail/contrib/table_block/locale/ca/LC_MESSAGES/django.mo +0 -0
  70. wagtail/contrib/table_block/locale/ca/LC_MESSAGES/django.po +27 -2
  71. wagtail/contrib/table_block/locale/hu/LC_MESSAGES/django.mo +0 -0
  72. wagtail/contrib/table_block/locale/hu/LC_MESSAGES/django.po +27 -2
  73. wagtail/contrib/table_block/locale/it/LC_MESSAGES/django.mo +0 -0
  74. wagtail/contrib/table_block/locale/it/LC_MESSAGES/django.po +27 -2
  75. wagtail/contrib/table_block/tests.py +6 -0
  76. wagtail/contrib/typed_table_block/locale/ca/LC_MESSAGES/django.mo +0 -0
  77. wagtail/contrib/typed_table_block/locale/ca/LC_MESSAGES/django.po +12 -2
  78. wagtail/contrib/typed_table_block/locale/hu/LC_MESSAGES/django.mo +0 -0
  79. wagtail/contrib/typed_table_block/locale/hu/LC_MESSAGES/django.po +12 -2
  80. wagtail/contrib/typed_table_block/locale/it/LC_MESSAGES/django.mo +0 -0
  81. wagtail/contrib/typed_table_block/locale/it/LC_MESSAGES/django.po +12 -2
  82. wagtail/documents/locale/fr/LC_MESSAGES/django.po +2 -2
  83. wagtail/documents/locale/he_IL/LC_MESSAGES/django.mo +0 -0
  84. wagtail/documents/locale/he_IL/LC_MESSAGES/django.po +2 -2
  85. wagtail/documents/locale/hr_HR/LC_MESSAGES/django.mo +0 -0
  86. wagtail/documents/locale/hr_HR/LC_MESSAGES/django.po +19 -2
  87. wagtail/documents/locale/hu/LC_MESSAGES/django.mo +0 -0
  88. wagtail/documents/locale/hu/LC_MESSAGES/django.po +16 -2
  89. wagtail/documents/locale/it/LC_MESSAGES/django.mo +0 -0
  90. wagtail/documents/locale/it/LC_MESSAGES/django.po +19 -2
  91. wagtail/embeds/locale/fr/LC_MESSAGES/django.po +2 -2
  92. wagtail/embeds/locale/he_IL/LC_MESSAGES/django.mo +0 -0
  93. wagtail/embeds/locale/he_IL/LC_MESSAGES/django.po +2 -2
  94. wagtail/images/locale/ca/LC_MESSAGES/django.mo +0 -0
  95. wagtail/images/locale/ca/LC_MESSAGES/django.po +12 -0
  96. wagtail/images/locale/fr/LC_MESSAGES/django.po +2 -2
  97. wagtail/images/locale/he_IL/LC_MESSAGES/django.mo +0 -0
  98. wagtail/images/locale/he_IL/LC_MESSAGES/django.po +2 -2
  99. wagtail/images/locale/hu/LC_MESSAGES/django.mo +0 -0
  100. wagtail/images/locale/hu/LC_MESSAGES/django.po +28 -2
  101. wagtail/images/locale/it/LC_MESSAGES/django.mo +0 -0
  102. wagtail/images/locale/it/LC_MESSAGES/django.po +14 -2
  103. wagtail/locale/es/LC_MESSAGES/django.mo +0 -0
  104. wagtail/locale/es/LC_MESSAGES/django.po +3 -2
  105. wagtail/locale/fr/LC_MESSAGES/django.po +2 -2
  106. wagtail/locale/he_IL/LC_MESSAGES/django.mo +0 -0
  107. wagtail/locale/he_IL/LC_MESSAGES/django.po +2 -2
  108. wagtail/locale/it/LC_MESSAGES/django.mo +0 -0
  109. wagtail/locale/it/LC_MESSAGES/django.po +5 -5
  110. wagtail/locale/sl/LC_MESSAGES/django.mo +0 -0
  111. wagtail/locale/sl/LC_MESSAGES/django.po +27 -2
  112. wagtail/locales/locale/ar/LC_MESSAGES/django.po +1 -1
  113. wagtail/locales/locale/be/LC_MESSAGES/django.po +1 -1
  114. wagtail/locales/locale/bg/LC_MESSAGES/django.po +1 -1
  115. wagtail/locales/locale/ca/LC_MESSAGES/django.po +1 -1
  116. wagtail/locales/locale/cs/LC_MESSAGES/django.po +1 -1
  117. wagtail/locales/locale/cy/LC_MESSAGES/django.po +1 -1
  118. wagtail/locales/locale/da/LC_MESSAGES/django.po +1 -1
  119. wagtail/locales/locale/de/LC_MESSAGES/django.po +1 -1
  120. wagtail/locales/locale/el/LC_MESSAGES/django.po +1 -1
  121. wagtail/locales/locale/es/LC_MESSAGES/django.po +1 -1
  122. wagtail/locales/locale/et/LC_MESSAGES/django.po +2 -2
  123. wagtail/locales/locale/fa/LC_MESSAGES/django.po +1 -1
  124. wagtail/locales/locale/fi/LC_MESSAGES/django.po +1 -1
  125. wagtail/locales/locale/fr/LC_MESSAGES/django.po +1 -1
  126. wagtail/locales/locale/gl/LC_MESSAGES/django.po +1 -1
  127. wagtail/locales/locale/he_IL/LC_MESSAGES/django.mo +0 -0
  128. wagtail/locales/locale/he_IL/LC_MESSAGES/django.po +3 -3
  129. wagtail/locales/locale/hr_HR/LC_MESSAGES/django.po +1 -1
  130. wagtail/locales/locale/hu/LC_MESSAGES/django.po +1 -1
  131. wagtail/locales/locale/id_ID/LC_MESSAGES/django.po +1 -1
  132. wagtail/locales/locale/is_IS/LC_MESSAGES/django.po +1 -1
  133. wagtail/locales/locale/it/LC_MESSAGES/django.po +1 -1
  134. wagtail/locales/locale/ja/LC_MESSAGES/django.po +1 -1
  135. wagtail/locales/locale/ko/LC_MESSAGES/django.po +1 -1
  136. wagtail/locales/locale/lt/LC_MESSAGES/django.po +1 -1
  137. wagtail/locales/locale/lv/LC_MESSAGES/django.po +1 -1
  138. wagtail/locales/locale/mi/LC_MESSAGES/django.po +1 -1
  139. wagtail/locales/locale/mn/LC_MESSAGES/django.po +1 -1
  140. wagtail/locales/locale/my/LC_MESSAGES/django.po +1 -1
  141. wagtail/locales/locale/nb/LC_MESSAGES/django.po +1 -1
  142. wagtail/locales/locale/nl/LC_MESSAGES/django.po +1 -1
  143. wagtail/locales/locale/pl/LC_MESSAGES/django.po +1 -1
  144. wagtail/locales/locale/pt_BR/LC_MESSAGES/django.po +1 -1
  145. wagtail/locales/locale/pt_PT/LC_MESSAGES/django.po +1 -1
  146. wagtail/locales/locale/ro/LC_MESSAGES/django.po +1 -1
  147. wagtail/locales/locale/ru/LC_MESSAGES/django.po +1 -1
  148. wagtail/locales/locale/sk_SK/LC_MESSAGES/django.po +1 -1
  149. wagtail/locales/locale/sl/LC_MESSAGES/django.po +1 -1
  150. wagtail/locales/locale/sv/LC_MESSAGES/django.po +1 -1
  151. wagtail/locales/locale/tet/LC_MESSAGES/django.po +1 -1
  152. wagtail/locales/locale/th/LC_MESSAGES/django.po +1 -1
  153. wagtail/locales/locale/tr/LC_MESSAGES/django.po +1 -1
  154. wagtail/locales/locale/tr_TR/LC_MESSAGES/django.po +1 -1
  155. wagtail/locales/locale/uk/LC_MESSAGES/django.po +1 -1
  156. wagtail/locales/locale/vi/LC_MESSAGES/django.po +1 -1
  157. wagtail/locales/locale/zh/LC_MESSAGES/django.po +1 -1
  158. wagtail/locales/locale/zh_Hans/LC_MESSAGES/django.po +1 -1
  159. wagtail/locales/locale/zh_Hant/LC_MESSAGES/django.po +1 -1
  160. wagtail/management/commands/convert_mariadb_uuids.py +43 -0
  161. wagtail/sites/locale/he_IL/LC_MESSAGES/django.mo +0 -0
  162. wagtail/sites/locale/he_IL/LC_MESSAGES/django.po +2 -2
  163. wagtail/sites/locale/ro/LC_MESSAGES/django.mo +0 -0
  164. wagtail/sites/locale/ro/LC_MESSAGES/django.po +3 -2
  165. wagtail/sites/templates/wagtailsites/create.html +0 -1
  166. wagtail/sites/templates/wagtailsites/edit.html +0 -1
  167. wagtail/snippets/locale/de/LC_MESSAGES/django.mo +0 -0
  168. wagtail/snippets/locale/de/LC_MESSAGES/django.po +2 -2
  169. wagtail/snippets/locale/fr/LC_MESSAGES/django.po +2 -2
  170. wagtail/snippets/locale/he_IL/LC_MESSAGES/django.mo +0 -0
  171. wagtail/snippets/locale/he_IL/LC_MESSAGES/django.po +2 -2
  172. wagtail/snippets/locale/hr_HR/LC_MESSAGES/django.mo +0 -0
  173. wagtail/snippets/locale/hr_HR/LC_MESSAGES/django.po +6 -2
  174. wagtail/snippets/locale/lv/LC_MESSAGES/django.mo +0 -0
  175. wagtail/snippets/locale/lv/LC_MESSAGES/django.po +12 -0
  176. wagtail/snippets/locale/zh_Hant/LC_MESSAGES/django.mo +0 -0
  177. wagtail/snippets/locale/zh_Hant/LC_MESSAGES/django.po +4 -0
  178. wagtail/snippets/templates/wagtailsnippets/snippets/create.html +1 -2
  179. wagtail/snippets/templates/wagtailsnippets/snippets/edit.html +1 -2
  180. wagtail/snippets/tests/test_viewset.py +32 -0
  181. wagtail/snippets/views/snippets.py +0 -19
  182. wagtail/test/testapp/migrations/0034_testpermissionedgenericsetting_and_more.py +42 -0
  183. wagtail/test/testapp/models.py +46 -0
  184. wagtail/test/testapp/views.py +1 -1
  185. wagtail/users/locale/fr/LC_MESSAGES/django.po +2 -2
  186. wagtail/users/locale/he_IL/LC_MESSAGES/django.mo +0 -0
  187. wagtail/users/locale/he_IL/LC_MESSAGES/django.po +2 -2
  188. wagtail/users/locale/hr_HR/LC_MESSAGES/django.mo +0 -0
  189. wagtail/users/locale/hr_HR/LC_MESSAGES/django.po +13 -2
  190. wagtail/users/templates/wagtailusers/groups/includes/group_form_js.html +0 -1
  191. wagtail/users/templates/wagtailusers/users/create.html +0 -5
  192. wagtail/users/templates/wagtailusers/users/edit.html +0 -5
  193. wagtail/users/tests/test_admin_views.py +7 -1
  194. {wagtail-6.0.1.dist-info → wagtail-6.0.3.dist-info}/METADATA +2 -2
  195. {wagtail-6.0.1.dist-info → wagtail-6.0.3.dist-info}/RECORD +199 -197
  196. {wagtail-6.0.1.dist-info → wagtail-6.0.3.dist-info}/LICENSE +0 -0
  197. {wagtail-6.0.1.dist-info → wagtail-6.0.3.dist-info}/WHEEL +0 -0
  198. {wagtail-6.0.1.dist-info → wagtail-6.0.3.dist-info}/entry_points.txt +0 -0
  199. {wagtail-6.0.1.dist-info → wagtail-6.0.3.dist-info}/top_level.txt +0 -0
@@ -56,6 +56,10 @@ msgstr "儲存"
56
56
  msgid "Locked"
57
57
  msgstr "已鎖定"
58
58
 
59
+ #, python-format
60
+ msgid "%(label)s and Publish"
61
+ msgstr "%(label)s並發布"
62
+
59
63
  msgid "Wagtail snippets"
60
64
  msgstr "Wagtail 片段"
61
65
 
@@ -12,7 +12,7 @@
12
12
 
13
13
  {% block actions %}
14
14
  <footer class="footer">
15
- <nav class="actions actions--primary footer__container w-grid" aria-label="{% trans 'Actions' %}">
15
+ <nav class="actions actions--primary footer__container" aria-label="{% trans 'Actions' %}">
16
16
  {{ action_menu.render_html }}
17
17
  </nav>
18
18
  </footer>
@@ -20,7 +20,6 @@
20
20
 
21
21
  {% block extra_js %}
22
22
  {{ block.super }}
23
- {% include "wagtailadmin/pages/_editor_js.html" %}
24
23
 
25
24
  <script>
26
25
  // Set wagtailConfig.ACTIVE_CONTENT_LOCALE if this is a translated page
@@ -13,7 +13,7 @@
13
13
 
14
14
  {% block actions %}
15
15
  <footer class="footer">
16
- <nav class="actions actions--primary footer__container w-grid" aria-label="{% trans 'Actions' %}">
16
+ <nav class="actions actions--primary footer__container" aria-label="{% trans 'Actions' %}">
17
17
  {{ action_menu.render_html }}
18
18
  </nav>
19
19
  </footer>
@@ -21,7 +21,6 @@
21
21
 
22
22
  {% block extra_js %}
23
23
  {{ block.super }}
24
- {% include "wagtailadmin/pages/_editor_js.html" %}
25
24
 
26
25
  <script>
27
26
  // Set wagtailConfig.ACTIVE_CONTENT_LOCALE if this is a translated page
@@ -1530,3 +1530,35 @@ class TestCustomMethods(BaseSnippetViewSetTests):
1530
1530
  soup = self.get_soup(response.content)
1531
1531
  links = soup.find_all("a", attrs={"href": add_url})
1532
1532
  self.assertEqual(len(links), 1)
1533
+
1534
+ def test_index_results_view_get_add_url_teleports_to_header(self):
1535
+ response = self.client.get(self.get_url("list_results"))
1536
+ add_url = self.get_url("add") + "?customised=param"
1537
+ soup = self.get_soup(response.content)
1538
+ template = soup.find(
1539
+ "template",
1540
+ {
1541
+ "data-controller": "w-teleport",
1542
+ "data-w-teleport-target-value": "#w-slim-header-buttons",
1543
+ },
1544
+ )
1545
+ self.assertIsNotNone(template)
1546
+ links = template.find_all("a", attrs={"href": add_url})
1547
+ self.assertEqual(len(links), 1)
1548
+
1549
+ @override_settings(WAGTAIL_I18N_ENABLED=True)
1550
+ def test_index_results_view_get_add_url_teleports_to_header_with_i18n(self):
1551
+ Locale.objects.create(language_code="fr")
1552
+ response = self.client.get(self.get_url("list_results") + "?locale=fr")
1553
+ add_url = self.get_url("add") + "?locale=fr&customised=param"
1554
+ soup = self.get_soup(response.content)
1555
+ template = soup.find(
1556
+ "template",
1557
+ {
1558
+ "data-controller": "w-teleport",
1559
+ "data-w-teleport-target-value": "#w-slim-header-buttons",
1560
+ },
1561
+ )
1562
+ self.assertIsNotNone(template)
1563
+ links = template.find_all("a", attrs={"href": add_url})
1564
+ self.assertEqual(len(links), 1)
@@ -235,22 +235,6 @@ class CreateView(generic.CreateEditViewOptionalFeaturesMixin, generic.CreateView
235
235
  def _get_action_menu(self):
236
236
  return SnippetActionMenu(self.request, view=self.view_name, model=self.model)
237
237
 
238
- def _get_initial_form_instance(self):
239
- instance = self.model()
240
-
241
- # Set locale of the new instance
242
- if self.locale:
243
- instance.locale = self.locale
244
-
245
- return instance
246
-
247
- def get_form_kwargs(self):
248
- return {
249
- **super().get_form_kwargs(),
250
- "instance": self._get_initial_form_instance(),
251
- "for_user": self.request.user,
252
- }
253
-
254
238
  def get_side_panels(self):
255
239
  side_panels = [
256
240
  SnippetStatusSidePanel(
@@ -310,9 +294,6 @@ class EditView(generic.CreateEditViewOptionalFeaturesMixin, generic.EditView):
310
294
  locked_for_user=self.locked_for_user,
311
295
  )
312
296
 
313
- def get_form_kwargs(self):
314
- return {**super().get_form_kwargs(), "for_user": self.request.user}
315
-
316
297
  def get_side_panels(self):
317
298
  side_panels = [
318
299
  SnippetStatusSidePanel(
@@ -0,0 +1,42 @@
1
+ # Generated by Django 4.2.11 on 2024-04-25 15:51
2
+
3
+ from django.db import migrations, models
4
+ import django.db.models.deletion
5
+
6
+
7
+ class Migration(migrations.Migration):
8
+
9
+ dependencies = [
10
+ ('wagtailcore', '0091_remove_revision_submitted_for_moderation'),
11
+ ('tests', '0033_customcopyformpage'),
12
+ ]
13
+
14
+ operations = [
15
+ migrations.CreateModel(
16
+ name='TestPermissionedGenericSetting',
17
+ fields=[
18
+ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
19
+ ('title', models.CharField(max_length=100)),
20
+ ('sensitive_email', models.EmailField(max_length=50)),
21
+ ],
22
+ options={
23
+ 'permissions': [('can_edit_sensitive_email_generic_setting', 'Can edit sensitive email generic setting.')],
24
+ },
25
+ ),
26
+ migrations.AlterModelOptions(
27
+ name='featurecompletetoy',
28
+ options={'permissions': [('can_set_release_date', 'Can set release date')]},
29
+ ),
30
+ migrations.CreateModel(
31
+ name='TestPermissionedSiteSetting',
32
+ fields=[
33
+ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
34
+ ('title', models.CharField(max_length=100)),
35
+ ('sensitive_email', models.EmailField(max_length=50)),
36
+ ('site', models.OneToOneField(editable=False, on_delete=django.db.models.deletion.CASCADE, to='wagtailcore.site')),
37
+ ],
38
+ options={
39
+ 'permissions': [('can_edit_sensitive_email_site_setting', 'Can edit sensitive email site setting.')],
40
+ },
41
+ ),
42
+ ]
@@ -1640,6 +1640,49 @@ class TestGenericSetting(BaseGenericSetting):
1640
1640
  email = models.EmailField(max_length=50)
1641
1641
 
1642
1642
 
1643
+ @register_setting
1644
+ class TestPermissionedGenericSetting(BaseGenericSetting):
1645
+ title = models.CharField(max_length=100)
1646
+ sensitive_email = models.EmailField(max_length=50)
1647
+
1648
+ panels = [
1649
+ FieldPanel("title"),
1650
+ FieldPanel(
1651
+ "sensitive_email",
1652
+ permission="tests.can_edit_sensitive_email_generic_setting",
1653
+ ),
1654
+ ]
1655
+
1656
+ class Meta:
1657
+ permissions = [
1658
+ (
1659
+ "can_edit_sensitive_email_generic_setting",
1660
+ "Can edit sensitive email generic setting.",
1661
+ ),
1662
+ ]
1663
+
1664
+
1665
+ @register_setting
1666
+ class TestPermissionedSiteSetting(BaseSiteSetting):
1667
+ title = models.CharField(max_length=100)
1668
+ sensitive_email = models.EmailField(max_length=50)
1669
+
1670
+ panels = [
1671
+ FieldPanel("title"),
1672
+ FieldPanel(
1673
+ "sensitive_email", permission="tests.can_edit_sensitive_email_site_setting"
1674
+ ),
1675
+ ]
1676
+
1677
+ class Meta:
1678
+ permissions = [
1679
+ (
1680
+ "can_edit_sensitive_email_site_setting",
1681
+ "Can edit sensitive email site setting.",
1682
+ ),
1683
+ ]
1684
+
1685
+
1643
1686
  @register_setting
1644
1687
  class ImportantPagesSiteSetting(BaseSiteSetting):
1645
1688
  sign_up_page = models.ForeignKey(
@@ -2229,6 +2272,9 @@ class FeatureCompleteToy(index.Indexed, models.Model):
2229
2272
  def __str__(self):
2230
2273
  return f"{self.name} ({self.release_date})"
2231
2274
 
2275
+ class Meta:
2276
+ permissions = [("can_set_release_date", "Can set release date")]
2277
+
2232
2278
 
2233
2279
  class PurgeRevisionsProtectedTestModel(models.Model):
2234
2280
  revision = models.OneToOneField(
@@ -227,7 +227,7 @@ class FeatureCompleteToyViewSet(ModelViewSet):
227
227
 
228
228
  panels = [
229
229
  FieldPanel("name"),
230
- FieldPanel("release_date"),
230
+ FieldPanel("release_date", permission="tests.can_set_release_date"),
231
231
  ]
232
232
 
233
233
 
@@ -8,8 +8,8 @@
8
8
  # Axel Haustant, 2016
9
9
  # Benoît Vogel <contact@spicy-informatique.com>, 2017
10
10
  # Bertrand Bordage <bordage.bertrand@gmail.com>, 2015-2018
11
- # fpoulain <fpoulain@metrodore.fr>, 2018
12
- # fpoulain <fpoulain@metrodore.fr>, 2018
11
+ # 69c761fa404d2f74d5a7a2904d9e6f47_dc2dbc9 <f37077798760362881f9d396b6e22ec7_1878>, 2018
12
+ # 69c761fa404d2f74d5a7a2904d9e6f47_dc2dbc9 <f37077798760362881f9d396b6e22ec7_1878>, 2018
13
13
  # incognitae <pierre@onoffdesign.com>, 2016
14
14
  # Léo <leo@naeka.fr>, 2016
15
15
  # Loic Teixeira, 2018,2020-2023
@@ -18,8 +18,8 @@ msgstr ""
18
18
  "Content-Type: text/plain; charset=UTF-8\n"
19
19
  "Content-Transfer-Encoding: 8bit\n"
20
20
  "Language: he_IL\n"
21
- "Plural-Forms: nplurals=4; plural=(n == 1 && n % 1 == 0) ? 0 : (n == 2 && n % "
22
- "1 == 0) ? 1: (n % 10 == 0 && n % 1 == 0 && n > 10) ? 2 : 3;\n"
21
+ "Plural-Forms: nplurals=3; plural=(n == 1 && n % 1 == 0) ? 0 : (n == 2 && n % "
22
+ "1 == 0) ? 1: 2;\n"
23
23
 
24
24
  msgid "This value may contain only letters, numbers and @/./+/-/_ characters."
25
25
  msgstr "ערך זה יכול להכיל אותיות, ספרות והתווים @/./+/-/_ בלבד"
@@ -4,7 +4,7 @@
4
4
  #
5
5
  # Translators:
6
6
  # Dino Aljević <dino8890@protonmail.com>, 2020
7
- # Dino Aljević <dino8890@protonmail.com>, 2020-2023
7
+ # Dino Aljević <dino8890@protonmail.com>, 2020-2024
8
8
  # Luka Matijević <lumatijev@gmail.com>, 2015
9
9
  # Matt Westcott <matthew@torchbox.com>, 2021
10
10
  msgid ""
@@ -13,7 +13,7 @@ msgstr ""
13
13
  "Report-Msgid-Bugs-To: \n"
14
14
  "POT-Creation-Date: 2024-01-24 13:51+0000\n"
15
15
  "PO-Revision-Date: 2014-02-19 11:54+0000\n"
16
- "Last-Translator: Dino Aljević <dino8890@protonmail.com>, 2020-2023\n"
16
+ "Last-Translator: Dino Aljević <dino8890@protonmail.com>, 2020-2024\n"
17
17
  "Language-Team: Croatian (Croatia) (http://app.transifex.com/torchbox/wagtail/"
18
18
  "language/hr_HR/)\n"
19
19
  "MIME-Version: 1.0\n"
@@ -374,6 +374,9 @@ msgstr[0] "%(num_parent_objects)d korisnik je izbrisan"
374
374
  msgstr[1] "%(num_parent_objects)d korisnika je izbrisano"
375
375
  msgstr[2] "%(num_parent_objects)d korisnika je izbrisano"
376
376
 
377
+ msgid "Mark as active"
378
+ msgstr "Označi kao aktivnog"
379
+
377
380
  msgid "Change the active state for selected users"
378
381
  msgstr "Promijeni aktivno stanje odabranim korisnicima"
379
382
 
@@ -438,3 +441,11 @@ msgstr "Korisnik '%(object)s' je izbrisan."
438
441
 
439
442
  msgid "Edit"
440
443
  msgstr "Uredi"
444
+
445
+ #, python-format
446
+ msgid "Edit user '%(name)s'"
447
+ msgstr "Uredi korisnika '%(name)s'"
448
+
449
+ #, python-format
450
+ msgid "Delete user '%(name)s'"
451
+ msgstr "Izbriši korisnika '%(name)s'"
@@ -1,6 +1,5 @@
1
1
  {% load wagtailadmin_tags %}
2
2
  <script src="{% versioned_static 'wagtailadmin/js/expanding-formset.js' %}"></script>
3
- <script src="{% versioned_static 'wagtailadmin/js/modal-workflow.js' %}"></script>
4
3
  <script src="{% versioned_static 'wagtailusers/js/group-form.js' %}"></script>
5
4
 
6
5
  {{ form_media.js }}
@@ -73,8 +73,3 @@
73
73
  </form>
74
74
  </div>
75
75
  {% endblock %}
76
-
77
- {% block extra_js %}
78
- {{ block.super }}
79
- {% include "wagtailadmin/pages/_editor_js.html" %}
80
- {% endblock %}
@@ -85,8 +85,3 @@
85
85
  </form>
86
86
  </div>
87
87
  {% endblock %}
88
-
89
- {% block extra_js %}
90
- {{ block.super }}
91
- {% include "wagtailadmin/pages/_editor_js.html" %}
92
- {% endblock %}
@@ -2029,7 +2029,13 @@ class TestGroupEditView(AdminTemplateTestUtils, WagtailTestUtils, TestCase):
2029
2029
  perm.content_type.model,
2030
2030
  )
2031
2031
  for perm_set in object_perms
2032
- for perm in [next(v for v in flatten(perm_set) if "perm" in v)["perm"]]
2032
+ for perm in [
2033
+ next(
2034
+ v
2035
+ for v in flatten(perm_set)
2036
+ if isinstance(v, dict) and "perm" in v
2037
+ )["perm"]
2038
+ ]
2033
2039
  ]
2034
2040
 
2035
2041
  # Set order on two objects, should appear first and second
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: wagtail
3
- Version: 6.0.1
3
+ Version: 6.0.3
4
4
  Summary: A Django content management system.
5
5
  Home-page: https://wagtail.org/
6
6
  Author: Wagtail core team + contributors
@@ -52,7 +52,7 @@ Requires-Dist: pyenchant (<4,>=3.1.1) ; extra == 'docs'
52
52
  Requires-Dist: sphinxcontrib-spelling (<8,>=7) ; extra == 'docs'
53
53
  Requires-Dist: Sphinx (>=1.5.2) ; extra == 'docs'
54
54
  Requires-Dist: sphinx-autobuild (>=0.6.0) ; extra == 'docs'
55
- Requires-Dist: sphinx-wagtail-theme (==6.2.0) ; extra == 'docs'
55
+ Requires-Dist: sphinx-wagtail-theme (==6.3.0) ; extra == 'docs'
56
56
  Requires-Dist: myst-parser (==2.0.0) ; extra == 'docs'
57
57
  Requires-Dist: sphinx-copybutton (<1.0,>=0.5) ; extra == 'docs'
58
58
  Provides-Extra: testing