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.
- wagtail/__init__.py +1 -1
- wagtail/admin/locale/ca/LC_MESSAGES/django.mo +0 -0
- wagtail/admin/locale/ca/LC_MESSAGES/django.po +122 -0
- wagtail/admin/locale/es/LC_MESSAGES/django.mo +0 -0
- wagtail/admin/locale/es/LC_MESSAGES/django.po +6 -6
- wagtail/admin/locale/fr/LC_MESSAGES/django.mo +0 -0
- wagtail/admin/locale/fr/LC_MESSAGES/django.po +70 -3
- wagtail/admin/locale/he_IL/LC_MESSAGES/django.mo +0 -0
- wagtail/admin/locale/he_IL/LC_MESSAGES/django.po +2 -6
- wagtail/admin/locale/he_IL/LC_MESSAGES/djangojs.mo +0 -0
- wagtail/admin/locale/he_IL/LC_MESSAGES/djangojs.po +2 -2
- wagtail/admin/locale/hr_HR/LC_MESSAGES/django.mo +0 -0
- wagtail/admin/locale/hr_HR/LC_MESSAGES/django.po +4 -0
- wagtail/admin/locale/hu/LC_MESSAGES/django.mo +0 -0
- wagtail/admin/locale/hu/LC_MESSAGES/django.po +142 -2
- wagtail/admin/locale/it/LC_MESSAGES/django.mo +0 -0
- wagtail/admin/locale/it/LC_MESSAGES/django.po +80 -8
- wagtail/admin/locale/it/LC_MESSAGES/djangojs.mo +0 -0
- wagtail/admin/locale/it/LC_MESSAGES/djangojs.po +14 -2
- wagtail/admin/locale/lv/LC_MESSAGES/django.mo +0 -0
- wagtail/admin/locale/lv/LC_MESSAGES/django.po +154 -1
- wagtail/admin/locale/sl/LC_MESSAGES/django.mo +0 -0
- wagtail/admin/locale/sl/LC_MESSAGES/django.po +145 -2
- wagtail/admin/locale/sv/LC_MESSAGES/django.mo +0 -0
- wagtail/admin/locale/sv/LC_MESSAGES/django.po +77 -3
- wagtail/admin/locale/zh_Hant/LC_MESSAGES/django.mo +0 -0
- wagtail/admin/locale/zh_Hant/LC_MESSAGES/django.po +17 -1
- wagtail/admin/static/wagtailadmin/css/core.css +1 -1
- wagtail/admin/static/wagtailadmin/js/core.js +1 -1
- wagtail/admin/static/wagtailadmin/js/vendor.js +1 -1
- wagtail/admin/templates/wagtailadmin/admin_base.html +1 -0
- wagtail/admin/templates/wagtailadmin/collections/edit.html +0 -1
- wagtail/admin/templates/wagtailadmin/generic/form.html +1 -0
- wagtail/admin/templates/wagtailadmin/generic/index_results.html +8 -0
- wagtail/admin/templates/wagtailadmin/home/workflow_objects_to_moderate.html +0 -1
- wagtail/admin/templates/wagtailadmin/pages/_editor_js.html +0 -1
- wagtail/admin/templates/wagtailadmin/pages/index.html +0 -2
- wagtail/admin/templates/wagtailadmin/shared/headers/slim_header.html +1 -1
- wagtail/admin/tests/api/test_pages.py +26 -10
- wagtail/admin/tests/pages/test_page_search.py +39 -0
- wagtail/admin/tests/viewsets/test_model_viewset.py +45 -10
- wagtail/admin/views/generic/base.py +3 -0
- wagtail/admin/views/generic/models.py +27 -10
- wagtail/admin/views/pages/search.py +1 -0
- wagtail/admin/widgets/button.py +1 -2
- wagtail/contrib/forms/locale/he_IL/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/forms/locale/he_IL/LC_MESSAGES/django.po +2 -2
- wagtail/contrib/redirects/locale/fr/LC_MESSAGES/django.po +2 -2
- wagtail/contrib/redirects/locale/he_IL/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/redirects/locale/he_IL/LC_MESSAGES/django.po +2 -2
- wagtail/contrib/search_promotions/locale/fr/LC_MESSAGES/django.po +2 -2
- wagtail/contrib/search_promotions/locale/he_IL/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/search_promotions/locale/he_IL/LC_MESSAGES/django.po +2 -2
- wagtail/contrib/search_promotions/locale/hr_HR/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/search_promotions/locale/hr_HR/LC_MESSAGES/django.po +41 -2
- wagtail/contrib/search_promotions/locale/it/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/search_promotions/locale/it/LC_MESSAGES/django.po +9 -3
- wagtail/contrib/settings/locale/he_IL/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/settings/locale/he_IL/LC_MESSAGES/django.po +2 -2
- wagtail/contrib/settings/locale/tr/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/settings/locale/tr/LC_MESSAGES/django.po +6 -2
- wagtail/contrib/settings/tests/generic/test_admin.py +88 -1
- wagtail/contrib/settings/tests/site_specific/test_admin.py +92 -3
- wagtail/contrib/styleguide/locale/he_IL/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/styleguide/locale/he_IL/LC_MESSAGES/django.po +2 -2
- wagtail/contrib/styleguide/tests.py +8 -0
- wagtail/contrib/styleguide/views.py +1 -1
- wagtail/contrib/table_block/blocks.py +1 -1
- wagtail/contrib/table_block/locale/ca/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/table_block/locale/ca/LC_MESSAGES/django.po +27 -2
- wagtail/contrib/table_block/locale/hu/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/table_block/locale/hu/LC_MESSAGES/django.po +27 -2
- wagtail/contrib/table_block/locale/it/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/table_block/locale/it/LC_MESSAGES/django.po +27 -2
- wagtail/contrib/table_block/tests.py +6 -0
- wagtail/contrib/typed_table_block/locale/ca/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/typed_table_block/locale/ca/LC_MESSAGES/django.po +12 -2
- wagtail/contrib/typed_table_block/locale/hu/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/typed_table_block/locale/hu/LC_MESSAGES/django.po +12 -2
- wagtail/contrib/typed_table_block/locale/it/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/typed_table_block/locale/it/LC_MESSAGES/django.po +12 -2
- wagtail/documents/locale/fr/LC_MESSAGES/django.po +2 -2
- wagtail/documents/locale/he_IL/LC_MESSAGES/django.mo +0 -0
- wagtail/documents/locale/he_IL/LC_MESSAGES/django.po +2 -2
- wagtail/documents/locale/hr_HR/LC_MESSAGES/django.mo +0 -0
- wagtail/documents/locale/hr_HR/LC_MESSAGES/django.po +19 -2
- wagtail/documents/locale/hu/LC_MESSAGES/django.mo +0 -0
- wagtail/documents/locale/hu/LC_MESSAGES/django.po +16 -2
- wagtail/documents/locale/it/LC_MESSAGES/django.mo +0 -0
- wagtail/documents/locale/it/LC_MESSAGES/django.po +19 -2
- wagtail/embeds/locale/fr/LC_MESSAGES/django.po +2 -2
- wagtail/embeds/locale/he_IL/LC_MESSAGES/django.mo +0 -0
- wagtail/embeds/locale/he_IL/LC_MESSAGES/django.po +2 -2
- wagtail/images/locale/ca/LC_MESSAGES/django.mo +0 -0
- wagtail/images/locale/ca/LC_MESSAGES/django.po +12 -0
- wagtail/images/locale/fr/LC_MESSAGES/django.po +2 -2
- wagtail/images/locale/he_IL/LC_MESSAGES/django.mo +0 -0
- wagtail/images/locale/he_IL/LC_MESSAGES/django.po +2 -2
- wagtail/images/locale/hu/LC_MESSAGES/django.mo +0 -0
- wagtail/images/locale/hu/LC_MESSAGES/django.po +28 -2
- wagtail/images/locale/it/LC_MESSAGES/django.mo +0 -0
- wagtail/images/locale/it/LC_MESSAGES/django.po +14 -2
- wagtail/locale/es/LC_MESSAGES/django.mo +0 -0
- wagtail/locale/es/LC_MESSAGES/django.po +3 -2
- wagtail/locale/fr/LC_MESSAGES/django.po +2 -2
- wagtail/locale/he_IL/LC_MESSAGES/django.mo +0 -0
- wagtail/locale/he_IL/LC_MESSAGES/django.po +2 -2
- wagtail/locale/it/LC_MESSAGES/django.mo +0 -0
- wagtail/locale/it/LC_MESSAGES/django.po +5 -5
- wagtail/locale/sl/LC_MESSAGES/django.mo +0 -0
- wagtail/locale/sl/LC_MESSAGES/django.po +27 -2
- wagtail/locales/locale/ar/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/be/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/bg/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/ca/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/cs/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/cy/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/da/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/de/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/el/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/es/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/et/LC_MESSAGES/django.po +2 -2
- wagtail/locales/locale/fa/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/fi/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/fr/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/gl/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/he_IL/LC_MESSAGES/django.mo +0 -0
- wagtail/locales/locale/he_IL/LC_MESSAGES/django.po +3 -3
- wagtail/locales/locale/hr_HR/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/hu/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/id_ID/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/is_IS/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/it/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/ja/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/ko/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/lt/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/lv/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/mi/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/mn/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/my/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/nb/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/nl/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/pl/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/pt_BR/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/pt_PT/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/ro/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/ru/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/sk_SK/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/sl/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/sv/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/tet/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/th/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/tr/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/tr_TR/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/uk/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/vi/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/zh/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/zh_Hans/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/zh_Hant/LC_MESSAGES/django.po +1 -1
- wagtail/management/commands/convert_mariadb_uuids.py +43 -0
- wagtail/sites/locale/he_IL/LC_MESSAGES/django.mo +0 -0
- wagtail/sites/locale/he_IL/LC_MESSAGES/django.po +2 -2
- wagtail/sites/locale/ro/LC_MESSAGES/django.mo +0 -0
- wagtail/sites/locale/ro/LC_MESSAGES/django.po +3 -2
- wagtail/sites/templates/wagtailsites/create.html +0 -1
- wagtail/sites/templates/wagtailsites/edit.html +0 -1
- wagtail/snippets/locale/de/LC_MESSAGES/django.mo +0 -0
- wagtail/snippets/locale/de/LC_MESSAGES/django.po +2 -2
- wagtail/snippets/locale/fr/LC_MESSAGES/django.po +2 -2
- wagtail/snippets/locale/he_IL/LC_MESSAGES/django.mo +0 -0
- wagtail/snippets/locale/he_IL/LC_MESSAGES/django.po +2 -2
- wagtail/snippets/locale/hr_HR/LC_MESSAGES/django.mo +0 -0
- wagtail/snippets/locale/hr_HR/LC_MESSAGES/django.po +6 -2
- wagtail/snippets/locale/lv/LC_MESSAGES/django.mo +0 -0
- wagtail/snippets/locale/lv/LC_MESSAGES/django.po +12 -0
- wagtail/snippets/locale/zh_Hant/LC_MESSAGES/django.mo +0 -0
- wagtail/snippets/locale/zh_Hant/LC_MESSAGES/django.po +4 -0
- wagtail/snippets/templates/wagtailsnippets/snippets/create.html +1 -2
- wagtail/snippets/templates/wagtailsnippets/snippets/edit.html +1 -2
- wagtail/snippets/tests/test_viewset.py +32 -0
- wagtail/snippets/views/snippets.py +0 -19
- wagtail/test/testapp/migrations/0034_testpermissionedgenericsetting_and_more.py +42 -0
- wagtail/test/testapp/models.py +46 -0
- wagtail/test/testapp/views.py +1 -1
- wagtail/users/locale/fr/LC_MESSAGES/django.po +2 -2
- wagtail/users/locale/he_IL/LC_MESSAGES/django.mo +0 -0
- wagtail/users/locale/he_IL/LC_MESSAGES/django.po +2 -2
- wagtail/users/locale/hr_HR/LC_MESSAGES/django.mo +0 -0
- wagtail/users/locale/hr_HR/LC_MESSAGES/django.po +13 -2
- wagtail/users/templates/wagtailusers/groups/includes/group_form_js.html +0 -1
- wagtail/users/templates/wagtailusers/users/create.html +0 -5
- wagtail/users/templates/wagtailusers/users/edit.html +0 -5
- wagtail/users/tests/test_admin_views.py +7 -1
- {wagtail-6.0.1.dist-info → wagtail-6.0.3.dist-info}/METADATA +2 -2
- {wagtail-6.0.1.dist-info → wagtail-6.0.3.dist-info}/RECORD +199 -197
- {wagtail-6.0.1.dist-info → wagtail-6.0.3.dist-info}/LICENSE +0 -0
- {wagtail-6.0.1.dist-info → wagtail-6.0.3.dist-info}/WHEEL +0 -0
- {wagtail-6.0.1.dist-info → wagtail-6.0.3.dist-info}/entry_points.txt +0 -0
- {wagtail-6.0.1.dist-info → wagtail-6.0.3.dist-info}/top_level.txt +0 -0
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
{% block actions %}
|
|
14
14
|
<footer class="footer">
|
|
15
|
-
<nav class="actions actions--primary footer__container
|
|
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
|
|
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
|
+
]
|
wagtail/test/testapp/models.py
CHANGED
|
@@ -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(
|
wagtail/test/testapp/views.py
CHANGED
|
@@ -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
|
-
#
|
|
12
|
-
#
|
|
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
|
|
Binary file
|
|
@@ -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=
|
|
22
|
-
"1 == 0) ? 1:
|
|
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 "ערך זה יכול להכיל אותיות, ספרות והתווים @/./+/-/_ בלבד"
|
|
Binary file
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
#
|
|
5
5
|
# Translators:
|
|
6
6
|
# Dino Aljević <dino8890@protonmail.com>, 2020
|
|
7
|
-
# Dino Aljević <dino8890@protonmail.com>, 2020-
|
|
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-
|
|
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 }}
|
|
@@ -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 [
|
|
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.
|
|
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.
|
|
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
|