wagtail 6.2.2__py3-none-any.whl → 6.3rc2__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 (386) hide show
  1. wagtail/__init__.py +1 -1
  2. wagtail/actions/copy_for_translation.py +6 -0
  3. wagtail/actions/publish_revision.py +3 -3
  4. wagtail/admin/action_menu.py +5 -3
  5. wagtail/admin/forms/account.py +1 -1
  6. wagtail/admin/icons.py +2 -6
  7. wagtail/admin/locale/cy/LC_MESSAGES/django.mo +0 -0
  8. wagtail/admin/locale/cy/LC_MESSAGES/django.po +32 -0
  9. wagtail/admin/locale/dv/LC_MESSAGES/django.mo +0 -0
  10. wagtail/admin/locale/dv/LC_MESSAGES/django.po +28 -0
  11. wagtail/admin/locale/en/LC_MESSAGES/django.po +451 -485
  12. wagtail/admin/locale/en/LC_MESSAGES/djangojs.po +7 -7
  13. wagtail/admin/locale/sl/LC_MESSAGES/django.mo +0 -0
  14. wagtail/admin/locale/sl/LC_MESSAGES/django.po +150 -0
  15. wagtail/admin/locale/sl/LC_MESSAGES/djangojs.mo +0 -0
  16. wagtail/admin/locale/sl/LC_MESSAGES/djangojs.po +9 -2
  17. wagtail/admin/locale/ug/LC_MESSAGES/django.mo +0 -0
  18. wagtail/admin/locale/ug/LC_MESSAGES/django.po +3250 -196
  19. wagtail/admin/localization.py +12 -2
  20. wagtail/admin/panels/model_utils.py +1 -1
  21. wagtail/admin/site_summary.py +0 -2
  22. wagtail/admin/static/wagtailadmin/css/core.css +1 -1
  23. wagtail/admin/static/wagtailadmin/css/panels/draftail.css +1 -1
  24. wagtail/admin/static/wagtailadmin/images/email-header.jpg +0 -0
  25. wagtail/admin/static/wagtailadmin/js/bulk-actions.js +1 -1
  26. wagtail/admin/static/wagtailadmin/js/core.js +1 -1
  27. wagtail/admin/static/wagtailadmin/js/core.js.LICENSE.txt +12 -0
  28. wagtail/admin/static/wagtailadmin/js/draftail.js +1 -1
  29. wagtail/admin/static/wagtailadmin/js/sidebar.js +1 -1
  30. wagtail/admin/static/wagtailadmin/js/telepath/telepath.js +1 -1
  31. wagtail/admin/static/wagtailadmin/js/telepath/widgets.js +1 -1
  32. wagtail/admin/static/wagtailadmin/js/userbar.js +1 -1
  33. wagtail/admin/static/wagtailadmin/js/userbar.js.LICENSE.txt +1 -1
  34. wagtail/admin/static/wagtailadmin/js/vendor.js +1 -1
  35. wagtail/admin/static/wagtailadmin/js/wagtailadmin.js +1 -1
  36. wagtail/admin/static/wagtailadmin/js/workflow-action.js +1 -1
  37. wagtail/admin/staticfiles.py +6 -4
  38. wagtail/admin/templates/wagtailadmin/account/account.html +42 -59
  39. wagtail/admin/templates/wagtailadmin/admin_base.html +0 -28
  40. wagtail/admin/templates/wagtailadmin/bulk_actions/footer.html +1 -1
  41. wagtail/admin/templates/wagtailadmin/chooser/_search_results.html +7 -5
  42. wagtail/admin/templates/wagtailadmin/chooser/tables/page_navigate_to_children_cell.html +1 -1
  43. wagtail/admin/templates/wagtailadmin/generic/chooser/results.html +7 -5
  44. wagtail/admin/templates/wagtailadmin/generic/edit.html +0 -8
  45. wagtail/admin/templates/wagtailadmin/generic/form.html +60 -17
  46. wagtail/admin/templates/wagtailadmin/generic/index.html +17 -0
  47. wagtail/admin/templates/wagtailadmin/generic/index_results.html +9 -35
  48. wagtail/admin/templates/wagtailadmin/generic/inspect.html +2 -21
  49. wagtail/admin/templates/wagtailadmin/generic/listing.html +11 -17
  50. wagtail/admin/templates/wagtailadmin/generic/listing_results.html +19 -1
  51. wagtail/admin/templates/wagtailadmin/home/account_summary.html +26 -0
  52. wagtail/admin/templates/wagtailadmin/home/locked_pages.html +28 -18
  53. wagtail/admin/templates/wagtailadmin/home/recent_edits.html +28 -17
  54. wagtail/admin/templates/wagtailadmin/home/site_summary_pages.html +2 -2
  55. wagtail/admin/templates/wagtailadmin/home/upgrade_notification.html +35 -13
  56. wagtail/admin/templates/wagtailadmin/home/user_objects_in_workflow_moderation.html +28 -18
  57. wagtail/admin/templates/wagtailadmin/home/workflow_objects_to_moderate.html +43 -32
  58. wagtail/admin/templates/wagtailadmin/home.html +22 -5
  59. wagtail/admin/templates/wagtailadmin/pages/_editor_js.html +0 -1
  60. wagtail/admin/templates/wagtailadmin/pages/action_menu/menu.html +1 -11
  61. wagtail/admin/templates/wagtailadmin/pages/action_menu/menu_item.html +1 -6
  62. wagtail/admin/templates/wagtailadmin/pages/action_menu/page_locked.html +1 -1
  63. wagtail/admin/templates/wagtailadmin/pages/action_menu/publish.html +1 -1
  64. wagtail/admin/templates/wagtailadmin/pages/action_menu/save_draft.html +1 -1
  65. wagtail/admin/templates/wagtailadmin/pages/bulk_actions/confirm_bulk_delete.html +12 -6
  66. wagtail/admin/templates/wagtailadmin/pages/bulk_actions/confirm_bulk_move.html +12 -7
  67. wagtail/admin/templates/wagtailadmin/pages/bulk_actions/confirm_bulk_publish.html +17 -11
  68. wagtail/admin/templates/wagtailadmin/pages/bulk_actions/confirm_bulk_unpublish.html +15 -9
  69. wagtail/admin/templates/wagtailadmin/pages/confirm_delete.html +9 -9
  70. wagtail/admin/templates/wagtailadmin/pages/confirm_move.html +2 -2
  71. wagtail/admin/templates/wagtailadmin/pages/confirm_unpublish.html +4 -4
  72. wagtail/admin/templates/wagtailadmin/pages/create.html +15 -34
  73. wagtail/admin/templates/wagtailadmin/pages/edit.html +15 -30
  74. wagtail/admin/templates/wagtailadmin/pages/explorable_index.html +6 -0
  75. wagtail/admin/templates/wagtailadmin/pages/explorable_index_results.html +60 -0
  76. wagtail/admin/templates/wagtailadmin/pages/index.html +1 -36
  77. wagtail/admin/templates/wagtailadmin/pages/index_results.html +2 -50
  78. wagtail/admin/templates/wagtailadmin/pages/listing/_locked_indicator.html +1 -1
  79. wagtail/admin/templates/wagtailadmin/pages/listing/_ordering_cell.html +1 -1
  80. wagtail/admin/templates/wagtailadmin/pages/listing/_page_header_buttons.html +1 -1
  81. wagtail/admin/templates/wagtailadmin/pages/listing/_page_title_column_header.html +3 -3
  82. wagtail/admin/templates/wagtailadmin/pages/listing/_pagination.html +1 -1
  83. wagtail/admin/templates/wagtailadmin/pages/listing.html +24 -0
  84. wagtail/admin/templates/wagtailadmin/pages/search.html +1 -20
  85. wagtail/admin/templates/wagtailadmin/pages/search_results.html +27 -25
  86. wagtail/admin/templates/wagtailadmin/permissions/includes/collection_member_permissions_formset.html +0 -1
  87. wagtail/admin/templates/wagtailadmin/reports/listing/_list_page_report.html +2 -2
  88. wagtail/admin/templates/wagtailadmin/reports/listing/_list_page_types_usage.html +6 -6
  89. wagtail/admin/templates/wagtailadmin/reports/workflow_tasks_results.html +1 -1
  90. wagtail/admin/templates/wagtailadmin/shared/action_menu/menu.html +14 -0
  91. wagtail/admin/templates/wagtailadmin/shared/action_menu/menu_item.html +6 -0
  92. wagtail/admin/templates/wagtailadmin/shared/avatar.html +13 -3
  93. wagtail/admin/templates/wagtailadmin/shared/header.html +0 -5
  94. wagtail/admin/templates/wagtailadmin/shared/headers/slim_header.html +1 -1
  95. wagtail/admin/templates/wagtailadmin/shared/page_status_tag_new.html +4 -1
  96. wagtail/admin/templates/wagtailadmin/shared/pagination_nav.html +1 -1
  97. wagtail/admin/templates/wagtailadmin/shared/side_panel_toggle.html +1 -1
  98. wagtail/admin/templates/wagtailadmin/shared/side_panels/includes/status/locale.html +1 -1
  99. wagtail/admin/templates/wagtailadmin/shared/side_panels/includes/status/usage.html +2 -2
  100. wagtail/admin/templates/wagtailadmin/shared/side_panels/preview.html +94 -52
  101. wagtail/admin/templates/wagtailadmin/{pages/_unsaved_changes_warning.html → shared/unsaved_changes_warning.html} +4 -4
  102. wagtail/admin/templates/wagtailadmin/shared/usage_summary.html +2 -2
  103. wagtail/admin/templates/wagtailadmin/shared/workflow_history/detail.html +1 -7
  104. wagtail/admin/templates/wagtailadmin/shared/workflow_history/listing.html +1 -0
  105. wagtail/admin/templates/wagtailadmin/shared/workflow_history/{list.html → listing_results.html} +33 -35
  106. wagtail/admin/templates/wagtailadmin/tables/references_cell.html +1 -1
  107. wagtail/admin/templates/wagtailadmin/workflows/create.html +11 -36
  108. wagtail/admin/templates/wagtailadmin/workflows/create_task.html +0 -38
  109. wagtail/admin/templates/wagtailadmin/workflows/edit.html +44 -74
  110. wagtail/admin/templates/wagtailadmin/workflows/edit_task.html +27 -66
  111. wagtail/admin/templates/wagtailadmin/workflows/includes/task_usage_cell.html +4 -2
  112. wagtail/admin/templates/wagtailadmin/workflows/includes/workflow_tasks_cell.html +4 -4
  113. wagtail/admin/templates/wagtailadmin/workflows/includes/workflow_used_by_cell.html +15 -11
  114. wagtail/admin/templates/wagtailadmin/workflows/task_chooser/includes/results.html +7 -5
  115. wagtail/admin/templatetags/wagtailadmin_tags.py +51 -22
  116. wagtail/admin/tests/pages/test_content_type_use_view.py +82 -2
  117. wagtail/admin/tests/pages/test_edit_page.py +70 -0
  118. wagtail/admin/tests/pages/test_explorer_view.py +65 -4
  119. wagtail/admin/tests/pages/test_page_search.py +8 -7
  120. wagtail/admin/tests/pages/test_page_usage.py +3 -1
  121. wagtail/admin/tests/pages/test_preview.py +208 -63
  122. wagtail/admin/tests/pages/test_reorder_page.py +91 -1
  123. wagtail/admin/tests/pages/test_view_draft.py +32 -1
  124. wagtail/admin/tests/pages/test_workflow_history.py +288 -7
  125. wagtail/admin/tests/test_account_management.py +23 -3
  126. wagtail/admin/tests/test_audit_log.py +24 -2
  127. wagtail/admin/tests/test_collections_views.py +17 -5
  128. wagtail/admin/tests/test_dashboard.py +1 -1
  129. wagtail/admin/tests/test_edit_handlers.py +3 -2
  130. wagtail/admin/tests/test_icon_sprite.py +4 -0
  131. wagtail/admin/tests/test_privacy.py +5 -19
  132. wagtail/admin/tests/test_reports_views.py +1 -1
  133. wagtail/admin/tests/test_site_summary.py +3 -3
  134. wagtail/admin/tests/test_templatetags.py +27 -3
  135. wagtail/admin/tests/test_upgrade_notification.py +71 -18
  136. wagtail/admin/tests/test_views.py +2 -2
  137. wagtail/admin/tests/test_views_generic.py +13 -0
  138. wagtail/admin/tests/test_widgets.py +3 -3
  139. wagtail/admin/tests/test_workflows.py +172 -27
  140. wagtail/admin/tests/tests.py +1 -1
  141. wagtail/admin/tests/viewsets/test_model_viewset.py +55 -3
  142. wagtail/admin/ui/side_panels.py +19 -0
  143. wagtail/admin/ui/sidebar.py +4 -3
  144. wagtail/admin/ui/tables/__init__.py +14 -1
  145. wagtail/admin/ui/tables/pages.py +6 -1
  146. wagtail/admin/urls/pages.py +10 -1
  147. wagtail/admin/urls/workflows.py +6 -1
  148. wagtail/admin/views/account.py +5 -1
  149. wagtail/admin/views/collections.py +0 -2
  150. wagtail/admin/views/generic/base.py +118 -1
  151. wagtail/admin/views/generic/history.py +158 -26
  152. wagtail/admin/views/generic/models.py +113 -99
  153. wagtail/admin/views/home.py +24 -9
  154. wagtail/admin/views/page_privacy.py +54 -30
  155. wagtail/admin/views/pages/history.py +11 -4
  156. wagtail/admin/views/pages/listing.py +76 -89
  157. wagtail/admin/views/pages/preview.py +1 -1
  158. wagtail/admin/views/pages/search.py +27 -71
  159. wagtail/admin/views/pages/usage.py +63 -24
  160. wagtail/admin/views/pages/utils.py +4 -3
  161. wagtail/admin/views/reports/base.py +0 -6
  162. wagtail/admin/views/workflows.py +67 -25
  163. wagtail/admin/viewsets/model.py +4 -3
  164. wagtail/admin/widgets/chooser.py +2 -1
  165. wagtail/api/v2/tests/test_pages.py +15 -2
  166. wagtail/blocks/field_block.py +15 -3
  167. wagtail/blocks/static_block.py +3 -0
  168. wagtail/contrib/forms/locale/cy/LC_MESSAGES/django.mo +0 -0
  169. wagtail/contrib/forms/locale/cy/LC_MESSAGES/django.po +29 -1
  170. wagtail/contrib/forms/locale/en/LC_MESSAGES/django.po +15 -11
  171. wagtail/contrib/forms/templates/wagtailforms/confirm_delete.html +1 -0
  172. wagtail/contrib/forms/templates/wagtailforms/index.html +1 -1
  173. wagtail/contrib/forms/templates/wagtailforms/index_results.html +1 -1
  174. wagtail/contrib/forms/templates/wagtailforms/list_submissions.html +2 -1
  175. wagtail/contrib/forms/templates/wagtailforms/panels/form_responses_panel.html +2 -2
  176. wagtail/contrib/forms/tests/test_views.py +234 -35
  177. wagtail/contrib/forms/utils.py +8 -14
  178. wagtail/contrib/forms/views.py +72 -27
  179. wagtail/contrib/frontend_cache/backends/azure.py +1 -1
  180. wagtail/contrib/frontend_cache/backends/cloudfront.py +2 -2
  181. wagtail/contrib/frontend_cache/backends/dummy.py +11 -0
  182. wagtail/contrib/frontend_cache/tests.py +31 -37
  183. wagtail/contrib/frontend_cache/utils.py +12 -5
  184. wagtail/contrib/redirects/locale/cy/LC_MESSAGES/django.mo +0 -0
  185. wagtail/contrib/redirects/locale/cy/LC_MESSAGES/django.po +16 -1
  186. wagtail/contrib/redirects/locale/en/LC_MESSAGES/django.po +20 -24
  187. wagtail/contrib/redirects/models.py +16 -1
  188. wagtail/contrib/redirects/signal_handlers.py +18 -3
  189. wagtail/contrib/redirects/templates/wagtailredirects/add.html +5 -16
  190. wagtail/contrib/redirects/templates/wagtailredirects/import_summary.html +1 -1
  191. wagtail/contrib/redirects/tests/test_redirects.py +49 -6
  192. wagtail/contrib/redirects/tests/test_signal_handlers.py +42 -1
  193. wagtail/contrib/redirects/views.py +27 -3
  194. wagtail/contrib/search_promotions/locale/cy/LC_MESSAGES/django.mo +0 -0
  195. wagtail/contrib/search_promotions/locale/cy/LC_MESSAGES/django.po +60 -1
  196. wagtail/contrib/search_promotions/locale/en/LC_MESSAGES/django.po +12 -18
  197. wagtail/contrib/search_promotions/templates/wagtailsearchpromotions/add.html +5 -8
  198. wagtail/contrib/search_promotions/templates/wagtailsearchpromotions/edit.html +15 -10
  199. wagtail/contrib/search_promotions/tests.py +13 -2
  200. wagtail/contrib/search_promotions/views.py +15 -3
  201. wagtail/contrib/settings/locale/cy/LC_MESSAGES/django.mo +0 -0
  202. wagtail/contrib/settings/locale/cy/LC_MESSAGES/django.po +6 -1
  203. wagtail/contrib/settings/locale/en/LC_MESSAGES/django.po +2 -10
  204. wagtail/contrib/settings/templates/wagtailsettings/edit.html +12 -45
  205. wagtail/contrib/simple_translation/locale/cy/LC_MESSAGES/django.mo +0 -0
  206. wagtail/contrib/simple_translation/locale/cy/LC_MESSAGES/django.po +13 -1
  207. wagtail/contrib/simple_translation/locale/dv/LC_MESSAGES/django.mo +0 -0
  208. wagtail/contrib/simple_translation/locale/dv/LC_MESSAGES/django.po +3 -0
  209. wagtail/contrib/simple_translation/locale/en/LC_MESSAGES/django.po +4 -4
  210. wagtail/contrib/simple_translation/locale/sl/LC_MESSAGES/django.mo +0 -0
  211. wagtail/contrib/simple_translation/locale/sl/LC_MESSAGES/django.po +5 -2
  212. wagtail/contrib/simple_translation/tests/test_views.py +51 -0
  213. wagtail/contrib/simple_translation/wagtail_hooks.py +16 -11
  214. wagtail/contrib/styleguide/locale/cy/LC_MESSAGES/django.mo +0 -0
  215. wagtail/contrib/styleguide/locale/cy/LC_MESSAGES/django.po +5 -1
  216. wagtail/contrib/styleguide/locale/en/LC_MESSAGES/django.po +1 -1
  217. wagtail/contrib/table_block/locale/cy/LC_MESSAGES/django.mo +0 -0
  218. wagtail/contrib/table_block/locale/cy/LC_MESSAGES/django.po +27 -1
  219. wagtail/contrib/table_block/locale/en/LC_MESSAGES/django.po +1 -1
  220. wagtail/contrib/typed_table_block/blocks.py +25 -0
  221. wagtail/contrib/typed_table_block/locale/cy/LC_MESSAGES/django.mo +0 -0
  222. wagtail/contrib/typed_table_block/locale/cy/LC_MESSAGES/django.po +12 -1
  223. wagtail/contrib/typed_table_block/locale/en/LC_MESSAGES/django.po +10 -10
  224. wagtail/contrib/typed_table_block/tests.py +24 -1
  225. wagtail/coreutils.py +5 -11
  226. wagtail/documents/admin_urls.py +2 -2
  227. wagtail/documents/locale/cy/LC_MESSAGES/django.mo +0 -0
  228. wagtail/documents/locale/cy/LC_MESSAGES/django.po +10 -0
  229. wagtail/documents/locale/en/LC_MESSAGES/django.po +61 -76
  230. wagtail/documents/migrations/0014_alter_document_file_size.py +18 -0
  231. wagtail/documents/models.py +1 -1
  232. wagtail/documents/rich_text/__init__.py +1 -3
  233. wagtail/documents/static/wagtaildocs/js/add-multiple.js +1 -1
  234. wagtail/documents/templates/wagtaildocs/bulk_actions/confirm_bulk_add_tags.html +5 -1
  235. wagtail/documents/templates/wagtaildocs/bulk_actions/confirm_bulk_add_to_collection.html +5 -1
  236. wagtail/documents/templates/wagtaildocs/bulk_actions/confirm_bulk_delete.html +11 -5
  237. wagtail/documents/templates/wagtaildocs/documents/add.html +13 -41
  238. wagtail/documents/templates/wagtaildocs/documents/edit.html +28 -56
  239. wagtail/documents/templates/wagtaildocs/documents/index.html +1 -4
  240. wagtail/documents/templates/wagtaildocs/homepage/site_summary_documents.html +2 -2
  241. wagtail/documents/templates/wagtaildocs/multiple/add.html +36 -41
  242. wagtail/documents/tests/test_admin_views.py +64 -6
  243. wagtail/documents/tests/test_site_summary.py +3 -3
  244. wagtail/documents/views/documents.py +103 -113
  245. wagtail/documents/views/multiple.py +19 -1
  246. wagtail/embeds/locale/en/LC_MESSAGES/django.po +1 -1
  247. wagtail/embeds/oembed_providers.py +9 -19
  248. wagtail/fields.py +43 -27
  249. wagtail/images/admin_urls.py +2 -2
  250. wagtail/images/blocks.py +230 -2
  251. wagtail/images/fields.py +17 -29
  252. wagtail/images/image_operations.py +1 -1
  253. wagtail/images/locale/cy/LC_MESSAGES/django.mo +0 -0
  254. wagtail/images/locale/cy/LC_MESSAGES/django.po +128 -1
  255. wagtail/images/locale/en/LC_MESSAGES/django.po +119 -129
  256. wagtail/images/migrations/0025_alter_image_file_alter_rendition_file.py +36 -43
  257. wagtail/images/migrations/0027_image_description.py +20 -0
  258. wagtail/images/models.py +120 -45
  259. wagtail/images/rich_text/__init__.py +1 -3
  260. wagtail/images/static/wagtailimages/js/add-multiple.js +1 -1
  261. wagtail/images/static/wagtailimages/js/image-block.js +1 -0
  262. wagtail/images/templates/wagtailimages/bulk_actions/confirm_bulk_add_tags.html +5 -1
  263. wagtail/images/templates/wagtailimages/bulk_actions/confirm_bulk_add_to_collection.html +5 -1
  264. wagtail/images/templates/wagtailimages/bulk_actions/confirm_bulk_delete.html +11 -5
  265. wagtail/images/templates/wagtailimages/chooser/results.html +2 -2
  266. wagtail/images/templates/wagtailimages/homepage/site_summary_images.html +2 -2
  267. wagtail/images/templates/wagtailimages/images/_file_field.html +2 -2
  268. wagtail/images/templates/wagtailimages/images/add.html +13 -31
  269. wagtail/images/templates/wagtailimages/images/edit.html +53 -82
  270. wagtail/images/templates/wagtailimages/images/index.html +1 -4
  271. wagtail/images/templates/wagtailimages/images/url_generator.html +1 -1
  272. wagtail/images/templates/wagtailimages/multiple/add.html +40 -47
  273. wagtail/images/templates/wagtailimages/widgets/image.html +5 -0
  274. wagtail/images/templates/wagtailimages/widgets/image_chooser.html +1 -1
  275. wagtail/images/tests/test_admin_views.py +70 -10
  276. wagtail/images/tests/test_blocks.py +367 -1
  277. wagtail/images/tests/test_image_operations.py +23 -0
  278. wagtail/images/tests/test_models.py +20 -0
  279. wagtail/images/tests/test_signal_handlers.py +99 -95
  280. wagtail/images/tests/test_site_summary.py +3 -3
  281. wagtail/images/tests/test_templatetags.py +11 -7
  282. wagtail/images/tests/tests.py +4 -0
  283. wagtail/images/views/images.py +103 -104
  284. wagtail/images/views/multiple.py +17 -1
  285. wagtail/locale/cy/LC_MESSAGES/django.mo +0 -0
  286. wagtail/locale/cy/LC_MESSAGES/django.po +3 -0
  287. wagtail/locale/en/LC_MESSAGES/django.po +137 -125
  288. wagtail/locale/sl/LC_MESSAGES/django.mo +0 -0
  289. wagtail/locale/sl/LC_MESSAGES/django.po +3 -0
  290. wagtail/locales/locale/en/LC_MESSAGES/django.po +8 -8
  291. wagtail/locales/views.py +4 -1
  292. wagtail/migrations/0089_log_entry_data_json_null_to_object.py +1 -7
  293. wagtail/models/__init__.py +122 -14
  294. wagtail/models/audit_log.py +1 -3
  295. wagtail/models/i18n.py +1 -2
  296. wagtail/project_template/Dockerfile +3 -3
  297. wagtail/project_template/requirements.txt +2 -2
  298. wagtail/query.py +17 -4
  299. wagtail/rich_text/__init__.py +2 -3
  300. wagtail/rich_text/pages.py +2 -4
  301. wagtail/rich_text/rewriters.py +2 -2
  302. wagtail/search/backends/database/mysql/query.py +3 -3
  303. wagtail/search/backends/database/sqlite/query.py +6 -6
  304. wagtail/search/locale/en/LC_MESSAGES/django.po +1 -1
  305. wagtail/sites/locale/en/LC_MESSAGES/django.po +6 -6
  306. wagtail/sites/views.py +0 -1
  307. wagtail/snippets/action_menu.py +14 -4
  308. wagtail/snippets/locale/cy/LC_MESSAGES/django.mo +0 -0
  309. wagtail/snippets/locale/cy/LC_MESSAGES/django.po +73 -1
  310. wagtail/snippets/locale/en/LC_MESSAGES/django.po +27 -33
  311. wagtail/snippets/static/wagtailsnippets/js/snippet-chooser-telepath.js +1 -1
  312. wagtail/snippets/static/wagtailsnippets/js/snippet-chooser.js +1 -1
  313. wagtail/snippets/templates/wagtailsnippets/bulk_actions/confirm_bulk_delete.html +5 -3
  314. wagtail/snippets/templates/wagtailsnippets/snippets/action_menu/locked.html +1 -1
  315. wagtail/snippets/templates/wagtailsnippets/snippets/action_menu/menu.html +1 -11
  316. wagtail/snippets/templates/wagtailsnippets/snippets/action_menu/menu_item.html +1 -6
  317. wagtail/snippets/templates/wagtailsnippets/snippets/action_menu/publish.html +1 -1
  318. wagtail/snippets/templates/wagtailsnippets/snippets/action_menu/save.html +1 -1
  319. wagtail/snippets/templates/wagtailsnippets/snippets/create.html +1 -18
  320. wagtail/snippets/templates/wagtailsnippets/snippets/edit.html +1 -14
  321. wagtail/snippets/templates/wagtailsnippets/snippets/index.html +2 -5
  322. wagtail/snippets/tests/test_preview.py +193 -61
  323. wagtail/snippets/tests/test_snippets.py +247 -38
  324. wagtail/snippets/tests/test_usage.py +5 -0
  325. wagtail/snippets/tests/test_viewset.py +25 -9
  326. wagtail/snippets/tests/test_workflows.py +232 -19
  327. wagtail/snippets/views/snippets.py +1 -10
  328. wagtail/test/numberformat.py +104 -0
  329. wagtail/test/settings.py +10 -0
  330. wagtail/test/settings_ui.py +2 -0
  331. wagtail/test/testapp/migrations/0010_alter_customimage_file_and_more.py +71 -78
  332. wagtail/test/testapp/migrations/0040_nocreatablesubpagetypespage_nosubpagetypespage.py +54 -0
  333. wagtail/test/testapp/migrations/0041_alter_jsonstreammodel_options.py +17 -0
  334. wagtail/test/testapp/migrations/0042_alter_customdocument_file_size_and_more.py +28 -0
  335. wagtail/test/testapp/migrations/0043_customimage_description.py +41 -0
  336. wagtail/test/testapp/migrations/0044_custompreviewsizesmodel_custompreviewsizespage.py +52 -0
  337. wagtail/test/testapp/migrations/0045_alter_streampage_body.py +52 -0
  338. wagtail/test/testapp/models.py +62 -4
  339. wagtail/test/testapp/rich_text.py +2 -2
  340. wagtail/test/testapp/templates/tests/form_page_landing.html +2 -1
  341. wagtail/test/testapp/urls.py +5 -0
  342. wagtail/test/testapp/views.py +5 -0
  343. wagtail/test/utils/page_tests.py +5 -5
  344. wagtail/test/utils/template_tests.py +2 -2
  345. wagtail/tests/test_blocks.py +15 -0
  346. wagtail/tests/test_page_permissions.py +109 -0
  347. wagtail/tests/test_revision_model.py +27 -0
  348. wagtail/tests/test_signals.py +21 -2
  349. wagtail/tests/test_tests.py +30 -0
  350. wagtail/users/locale/cy/LC_MESSAGES/django.mo +0 -0
  351. wagtail/users/locale/cy/LC_MESSAGES/django.po +118 -1
  352. wagtail/users/locale/dv/LC_MESSAGES/django.mo +0 -0
  353. wagtail/users/locale/dv/LC_MESSAGES/django.po +3 -0
  354. wagtail/users/locale/en/LC_MESSAGES/django.po +89 -113
  355. wagtail/users/locale/sl/LC_MESSAGES/django.mo +0 -0
  356. wagtail/users/locale/sl/LC_MESSAGES/django.po +3 -0
  357. wagtail/users/migrations/0014_userprofile_contrast.py +23 -0
  358. wagtail/users/models.py +11 -0
  359. wagtail/users/templates/wagtailusers/bulk_actions/confirm_bulk_assign_role.html +5 -1
  360. wagtail/users/templates/wagtailusers/bulk_actions/confirm_bulk_delete.html +5 -1
  361. wagtail/users/templates/wagtailusers/bulk_actions/confirm_bulk_set_active_state.html +5 -1
  362. wagtail/users/templates/wagtailusers/groups/create.html +19 -17
  363. wagtail/users/templates/wagtailusers/groups/edit.html +2 -40
  364. wagtail/users/templates/wagtailusers/groups/includes/formatted_permissions.html +1 -62
  365. wagtail/users/templates/wagtailusers/groups/includes/page_permissions_formset.html +0 -1
  366. wagtail/users/templates/wagtailusers/users/create.html +46 -50
  367. wagtail/users/templates/wagtailusers/users/edit.html +45 -62
  368. wagtail/users/templates/wagtailusers/users/index.html +1 -4
  369. wagtail/users/templatetags/wagtailusers_tags.py +1 -5
  370. wagtail/users/tests/test_admin_views.py +85 -66
  371. wagtail/users/views/groups.py +4 -1
  372. wagtail/users/views/users.py +2 -0
  373. {wagtail-6.2.2.dist-info → wagtail-6.3rc2.dist-info}/METADATA +6 -6
  374. {wagtail-6.2.2.dist-info → wagtail-6.3rc2.dist-info}/RECORD +378 -367
  375. wagtail/admin/static/wagtailadmin/js/preview-panel.js +0 -2
  376. wagtail/admin/static/wagtailadmin/js/preview-panel.js.LICENSE.txt +0 -11
  377. wagtail/admin/templates/wagtailadmin/generic/history_results.html +0 -1
  378. wagtail/admin/templates/wagtailadmin/page_privacy/ancestor_privacy.html +0 -3
  379. wagtail/admin/templates/wagtailadmin/pages/usage_results.html +0 -6
  380. wagtail/admin/templates/wagtailadmin/shared/workflow_history/index.html +0 -17
  381. wagtail/admin/templates/wagtailadmin/shared/workflow_history/results.html +0 -17
  382. wagtail/admin/templates/wagtailadmin/workflows/usage.html +0 -44
  383. {wagtail-6.2.2.dist-info → wagtail-6.3rc2.dist-info}/LICENSE +0 -0
  384. {wagtail-6.2.2.dist-info → wagtail-6.3rc2.dist-info}/WHEEL +0 -0
  385. {wagtail-6.2.2.dist-info → wagtail-6.3rc2.dist-info}/entry_points.txt +0 -0
  386. {wagtail-6.2.2.dist-info → wagtail-6.3rc2.dist-info}/top_level.txt +0 -0
@@ -8,7 +8,7 @@ msgid ""
8
8
  msgstr ""
9
9
  "Project-Id-Version: PACKAGE VERSION\n"
10
10
  "Report-Msgid-Bugs-To: \n"
11
- "POT-Creation-Date: 2024-08-07 10:06+0100\n"
11
+ "POT-Creation-Date: 2024-10-21 17:53+0100\n"
12
12
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -22,44 +22,56 @@ msgstr ""
22
22
  msgid "Wagtail images"
23
23
  msgstr ""
24
24
 
25
- #: fields.py:53
25
+ #: blocks.py:72 blocks.py:83 forms.py:160
26
+ msgid "Image is decorative"
27
+ msgstr ""
28
+
29
+ #: blocks.py:74 blocks.py:86 forms.py:162
30
+ msgid "Alt text"
31
+ msgstr ""
32
+
33
+ #: blocks.py:194 forms.py:175
34
+ msgid "Please add some alt text for your image or mark it as decorative"
35
+ msgstr ""
36
+
37
+ #: fields.py:54
26
38
  #, python-format
27
39
  msgid ""
28
40
  "Supported formats: %(supported_formats)s. Maximum filesize: "
29
41
  "%(max_upload_size)s."
30
42
  msgstr ""
31
43
 
32
- #: fields.py:59
44
+ #: fields.py:60
33
45
  #, python-format
34
46
  msgid "Supported formats: %(supported_formats)s."
35
47
  msgstr ""
36
48
 
37
- #: fields.py:67
49
+ #: fields.py:68
38
50
  #, python-format
39
51
  msgid "Not a supported image format. Supported formats: %(supported_formats)s."
40
52
  msgstr ""
41
53
 
42
- #: fields.py:71
54
+ #: fields.py:72
43
55
  #, python-format
44
56
  msgid ""
45
57
  "Not a valid .%(extension)s image. The extension does not match the file "
46
58
  "format (%(image_format)s)"
47
59
  msgstr ""
48
60
 
49
- #: fields.py:75
61
+ #: fields.py:76
50
62
  #, python-format
51
63
  msgid ""
52
64
  "This file is too big (%(file_size)s). Maximum filesize %(max_filesize)s."
53
65
  msgstr ""
54
66
 
55
- #: fields.py:79
67
+ #: fields.py:80
56
68
  #, python-format
57
69
  msgid ""
58
70
  "This file has too many pixels (%(num_pixels)s). Maximum pixels "
59
71
  "%(max_pixels_count)s."
60
72
  msgstr ""
61
73
 
62
- #: fields.py:83
74
+ #: fields.py:84
63
75
  #, python-format
64
76
  msgid "This file is too big. Maximum filesize %(max_filesize)s."
65
77
  msgstr ""
@@ -84,18 +96,6 @@ msgstr ""
84
96
  msgid "Format"
85
97
  msgstr ""
86
98
 
87
- #: forms.py:160
88
- msgid "Image is decorative"
89
- msgstr ""
90
-
91
- #: forms.py:162
92
- msgid "Alt text"
93
- msgstr ""
94
-
95
- #: forms.py:175
96
- msgid "Please add some alt text for your image or mark it as decorative"
97
- msgstr ""
98
-
99
99
  #: forms.py:183
100
100
  msgid "Filter"
101
101
  msgstr ""
@@ -144,7 +144,7 @@ msgstr ""
144
144
  msgid "Add/edit images you own"
145
145
  msgstr ""
146
146
 
147
- #: forms.py:202 views/images.py:357
147
+ #: forms.py:202
148
148
  msgid "Edit"
149
149
  msgstr ""
150
150
 
@@ -160,87 +160,91 @@ msgstr ""
160
160
  msgid "Select images in choosers"
161
161
  msgstr ""
162
162
 
163
- #: models.py:257
163
+ #: models.py:258
164
164
  msgid "title"
165
165
  msgstr ""
166
166
 
167
- #: models.py:260
167
+ #: models.py:261
168
168
  msgid "file"
169
169
  msgstr ""
170
170
 
171
- #: models.py:265
171
+ #: models.py:269
172
+ msgid "description"
173
+ msgstr ""
174
+
175
+ #: models.py:272
172
176
  msgid "width"
173
177
  msgstr ""
174
178
 
175
- #: models.py:266
179
+ #: models.py:273
176
180
  msgid "height"
177
181
  msgstr ""
178
182
 
179
- #: models.py:268
183
+ #: models.py:275
180
184
  msgid "created at"
181
185
  msgstr ""
182
186
 
183
- #: models.py:272
187
+ #: models.py:279
184
188
  msgid "uploaded by user"
185
189
  msgstr ""
186
190
 
187
- #: models.py:280
191
+ #: models.py:287
188
192
  msgid "tags"
189
193
  msgstr ""
190
194
 
191
- #: models.py:856
195
+ #: models.py:898
192
196
  msgid "image"
193
197
  msgstr ""
194
198
 
195
- #: models.py:857
199
+ #: models.py:899
196
200
  msgid "images"
197
201
  msgstr ""
198
202
 
199
- #: templates/wagtailimages/bulk_actions/confirm_bulk_add_tags.html:4
203
+ #: templates/wagtailimages/bulk_actions/confirm_bulk_add_tags.html:6
200
204
  #, python-format
201
205
  msgid "Add tags to 1 image"
202
206
  msgid_plural "Add tags to %(counter)s images"
203
207
  msgstr[0] ""
204
208
  msgstr[1] ""
205
209
 
206
- #: templates/wagtailimages/bulk_actions/confirm_bulk_add_tags.html:7
210
+ #: templates/wagtailimages/bulk_actions/confirm_bulk_add_tags.html:11
207
211
  msgid "Add tags to images"
208
212
  msgstr ""
209
213
 
210
- #: templates/wagtailimages/bulk_actions/confirm_bulk_add_tags.html:14
214
+ #: templates/wagtailimages/bulk_actions/confirm_bulk_add_tags.html:18
211
215
  msgid "Are you sure you want to tag the following image?"
212
216
  msgid_plural "Are you sure you want to tag the following images?"
213
217
  msgstr[0] ""
214
218
  msgstr[1] ""
215
219
 
216
- #: templates/wagtailimages/bulk_actions/confirm_bulk_add_tags.html:32
220
+ #: templates/wagtailimages/bulk_actions/confirm_bulk_add_tags.html:36
217
221
  msgid "You don't have permission to add tags to this image"
218
222
  msgid_plural "You don't have permission to add tags to these images"
219
223
  msgstr[0] ""
220
224
  msgstr[1] ""
221
225
 
222
- #: templates/wagtailimages/bulk_actions/confirm_bulk_add_tags.html:39
223
- #: templates/wagtailimages/bulk_actions/confirm_bulk_add_to_collection.html:39
226
+ #: templates/wagtailimages/bulk_actions/confirm_bulk_add_tags.html:43
227
+ #: templates/wagtailimages/bulk_actions/confirm_bulk_add_to_collection.html:43
224
228
  msgid "Yes, add"
225
229
  msgstr ""
226
230
 
227
- #: templates/wagtailimages/bulk_actions/confirm_bulk_add_tags.html:40
228
- #: templates/wagtailimages/bulk_actions/confirm_bulk_add_to_collection.html:40
231
+ #: templates/wagtailimages/bulk_actions/confirm_bulk_add_tags.html:44
232
+ #: templates/wagtailimages/bulk_actions/confirm_bulk_add_to_collection.html:44
229
233
  msgid "No, don't add"
230
234
  msgstr ""
231
235
 
232
- #: templates/wagtailimages/bulk_actions/confirm_bulk_add_to_collection.html:4
236
+ #: templates/wagtailimages/bulk_actions/confirm_bulk_add_to_collection.html:6
233
237
  #, python-format
234
238
  msgid "Add 1 image to new collection"
235
239
  msgid_plural "Add %(counter)s images to new collection"
236
240
  msgstr[0] ""
237
241
  msgstr[1] ""
238
242
 
239
- #: templates/wagtailimages/bulk_actions/confirm_bulk_add_to_collection.html:7
243
+ #: templates/wagtailimages/bulk_actions/confirm_bulk_add_to_collection.html:11
240
244
  msgid "Add images to collection"
241
245
  msgstr ""
242
246
 
243
- #: templates/wagtailimages/bulk_actions/confirm_bulk_add_to_collection.html:14
247
+ #: templates/wagtailimages/bulk_actions/confirm_bulk_add_to_collection.html:18
244
248
  msgid ""
245
249
  "Are you sure you want to add the following image to the selected collection?"
246
250
  msgid_plural ""
@@ -248,50 +252,50 @@ msgid_plural ""
248
252
  msgstr[0] ""
249
253
  msgstr[1] ""
250
254
 
251
- #: templates/wagtailimages/bulk_actions/confirm_bulk_add_to_collection.html:32
255
+ #: templates/wagtailimages/bulk_actions/confirm_bulk_add_to_collection.html:36
252
256
  msgid "You don't have permission to add this image to a collection"
253
257
  msgid_plural "You don't have permission to add these images to a collection"
254
258
  msgstr[0] ""
255
259
  msgstr[1] ""
256
260
 
257
- #: templates/wagtailimages/bulk_actions/confirm_bulk_delete.html:3
261
+ #: templates/wagtailimages/bulk_actions/confirm_bulk_delete.html:5
258
262
  #, python-format
259
263
  msgid "Delete 1 image"
260
264
  msgid_plural "Delete %(counter)s images"
261
265
  msgstr[0] ""
262
266
  msgstr[1] ""
263
267
 
264
- #: templates/wagtailimages/bulk_actions/confirm_bulk_delete.html:6
268
+ #: templates/wagtailimages/bulk_actions/confirm_bulk_delete.html:10
265
269
  msgid "Delete images"
266
270
  msgstr ""
267
271
 
268
- #: templates/wagtailimages/bulk_actions/confirm_bulk_delete.html:13
272
+ #: templates/wagtailimages/bulk_actions/confirm_bulk_delete.html:17
269
273
  #: views/images.py:330
270
274
  msgid "Are you sure you want to delete this image?"
271
275
  msgid_plural "Are you sure you want to delete these images?"
272
276
  msgstr[0] ""
273
277
  msgstr[1] ""
274
278
 
275
- #: templates/wagtailimages/bulk_actions/confirm_bulk_delete.html:23
276
- #: templates/wagtailimages/images/edit.html:87
279
+ #: templates/wagtailimages/bulk_actions/confirm_bulk_delete.html:28
280
+ #: templates/wagtailimages/images/edit.html:67
277
281
  #, python-format
278
282
  msgid "Used %(usage_count)s time"
279
283
  msgid_plural "Used %(usage_count)s times"
280
284
  msgstr[0] ""
281
285
  msgstr[1] ""
282
286
 
283
- #: templates/wagtailimages/bulk_actions/confirm_bulk_delete.html:32
287
+ #: templates/wagtailimages/bulk_actions/confirm_bulk_delete.html:38
284
288
  msgid "You don't have permission to delete this image"
285
289
  msgid_plural "You don't have permission to delete these images"
286
290
  msgstr[0] ""
287
291
  msgstr[1] ""
288
292
 
289
- #: templates/wagtailimages/bulk_actions/confirm_bulk_delete.html:39
293
+ #: templates/wagtailimages/bulk_actions/confirm_bulk_delete.html:45
290
294
  #: templates/wagtailimages/images/confirm_delete.html:16
291
295
  msgid "Yes, delete"
292
296
  msgstr ""
293
297
 
294
- #: templates/wagtailimages/bulk_actions/confirm_bulk_delete.html:40
298
+ #: templates/wagtailimages/bulk_actions/confirm_bulk_delete.html:46
295
299
  #: templates/wagtailimages/images/confirm_delete.html:17
296
300
  msgid "No, don't delete"
297
301
  msgstr ""
@@ -356,11 +360,9 @@ msgstr ""
356
360
  #: templates/wagtailimages/homepage/site_summary_images.html:6
357
361
  #, python-format
358
362
  msgid ""
359
- "<span>%(total)s</span> Image <span class=\"w-sr-only\">created in "
360
- "%(site_name)s</span>"
363
+ "%(total)s Image <span class=\"w-sr-only\">created in %(site_name)s</span>"
361
364
  msgid_plural ""
362
- "<span>%(total)s</span> Images <span class=\"w-sr-only\">created in "
363
- "%(site_name)s</span>"
365
+ "%(total)s Images <span class=\"w-sr-only\">created in %(site_name)s</span>"
364
366
  msgstr[0] ""
365
367
  msgstr[1] ""
366
368
 
@@ -368,18 +370,18 @@ msgstr[1] ""
368
370
  msgid "Change image file:"
369
371
  msgstr ""
370
372
 
371
- #: templates/wagtailimages/images/add.html:4 views/images.py:63
373
+ #: templates/wagtailimages/images/add.html:3 views/images.py:61
372
374
  msgid "Add an image"
373
375
  msgstr ""
374
376
 
375
- #: templates/wagtailimages/images/add.html:48
376
- msgid "Add image"
377
+ #: templates/wagtailimages/images/add.html:45 views/chooser.py:52
378
+ #: views/chooser.py:319
379
+ msgid "Uploading…"
377
380
  msgstr ""
378
381
 
379
- #: templates/wagtailimages/images/add.html:64
380
- #: templates/wagtailimages/images/edit.html:41
381
- #: templates/wagtailimages/images/edit.html:97
382
- msgid "Save"
382
+ #: templates/wagtailimages/images/add.html:48 views/chooser.py:51
383
+ #: views/chooser.py:318
384
+ msgid "Upload"
383
385
  msgstr ""
384
386
 
385
387
  #: templates/wagtailimages/images/confirm_duplicate_upload.html:14
@@ -390,71 +392,57 @@ msgstr ""
390
392
  msgid "Delete new image"
391
393
  msgstr ""
392
394
 
393
- #: templates/wagtailimages/images/edit.html:3
394
- #, python-format
395
- msgid "Editing image %(title)s"
396
- msgstr ""
397
-
398
- #: templates/wagtailimages/images/edit.html:22
399
- msgid "Editing"
400
- msgstr ""
401
-
402
- #: templates/wagtailimages/images/edit.html:43
403
- #: templates/wagtailimages/images/edit.html:99 views/images.py:318
404
- msgid "Delete image"
405
- msgstr ""
406
-
407
- #: templates/wagtailimages/images/edit.html:58
395
+ #: templates/wagtailimages/images/edit.html:37
408
396
  msgid "Image focal point"
409
397
  msgstr ""
410
398
 
411
- #: templates/wagtailimages/images/edit.html:65
399
+ #: templates/wagtailimages/images/edit.html:44
412
400
  msgid "URL Generator"
413
401
  msgstr ""
414
402
 
415
- #: templates/wagtailimages/images/edit.html:71
403
+ #: templates/wagtailimages/images/edit.html:50
416
404
  msgid "Focal point"
417
405
  msgstr ""
418
406
 
419
- #: templates/wagtailimages/images/edit.html:71
407
+ #: templates/wagtailimages/images/edit.html:50
420
408
  msgid "(optional)"
421
409
  msgstr ""
422
410
 
423
- #: templates/wagtailimages/images/edit.html:72
411
+ #: templates/wagtailimages/images/edit.html:51
424
412
  msgid ""
425
413
  "To define this image's most important region, drag a box over the image "
426
414
  "above."
427
415
  msgstr ""
428
416
 
429
- #: templates/wagtailimages/images/edit.html:72
417
+ #: templates/wagtailimages/images/edit.html:51
430
418
  msgid "Current focal point shown"
431
419
  msgstr ""
432
420
 
433
- #: templates/wagtailimages/images/edit.html:74
421
+ #: templates/wagtailimages/images/edit.html:53
434
422
  msgid "Remove focal area"
435
423
  msgstr ""
436
424
 
437
- #: templates/wagtailimages/images/edit.html:80
425
+ #: templates/wagtailimages/images/edit.html:59
438
426
  msgid "Max dimensions"
439
427
  msgstr ""
440
428
 
441
- #: templates/wagtailimages/images/edit.html:82
429
+ #: templates/wagtailimages/images/edit.html:61
442
430
  msgid "Filesize"
443
431
  msgstr ""
444
432
 
445
- #: templates/wagtailimages/images/edit.html:83
433
+ #: templates/wagtailimages/images/edit.html:62
446
434
  msgid "File not found"
447
435
  msgstr ""
448
436
 
449
- #: templates/wagtailimages/images/edit.html:85
437
+ #: templates/wagtailimages/images/edit.html:64
450
438
  msgid "Usage"
451
439
  msgstr ""
452
440
 
453
- #: templates/wagtailimages/images/index.html:14
441
+ #: templates/wagtailimages/images/index.html:11
454
442
  msgid "Sort by"
455
443
  msgstr ""
456
444
 
457
- #: templates/wagtailimages/images/index.html:26
445
+ #: templates/wagtailimages/images/index.html:23
458
446
  msgid "Select all images in listing"
459
447
  msgstr ""
460
448
 
@@ -506,50 +494,52 @@ msgstr ""
506
494
  msgid "Add multiple images"
507
495
  msgstr ""
508
496
 
509
- #: templates/wagtailimages/multiple/add.html:13
510
- msgid "Add images"
511
- msgstr ""
512
-
513
- #: templates/wagtailimages/multiple/add.html:18
497
+ #: templates/wagtailimages/multiple/add.html:14
514
498
  msgid "Drag and drop images into this area to upload immediately."
515
499
  msgstr ""
516
500
 
517
- #: templates/wagtailimages/multiple/add.html:23
501
+ #: templates/wagtailimages/multiple/add.html:19
518
502
  msgid "Or choose from your computer"
519
503
  msgstr ""
520
504
 
521
- #: templates/wagtailimages/multiple/add.html:28
505
+ #: templates/wagtailimages/multiple/add.html:34
522
506
  msgid "Add to collection:"
523
507
  msgstr ""
524
508
 
525
- #: templates/wagtailimages/multiple/add.html:62
509
+ #: templates/wagtailimages/multiple/add.html:67
510
+ msgid ""
511
+ "Please provide an image description to comply with best practices for "
512
+ "accessibility."
513
+ msgstr ""
514
+
515
+ #: templates/wagtailimages/multiple/add.html:68
526
516
  msgid ""
527
517
  "Upload successful. Please update this image with a more appropriate title, "
528
518
  "if necessary. You may also delete the image completely if the upload wasn't "
529
519
  "required."
530
520
  msgstr ""
531
521
 
532
- #: templates/wagtailimages/multiple/add.html:64
522
+ #: templates/wagtailimages/multiple/add.html:70
533
523
  msgid ""
534
524
  "Upload successful. However, your new image seems to be a duplicate of this "
535
525
  "existing image. You may delete it if it wasn't required."
536
526
  msgstr ""
537
527
 
538
- #: templates/wagtailimages/multiple/add.html:66
528
+ #: templates/wagtailimages/multiple/add.html:72
539
529
  msgid "Sorry, upload failed."
540
530
  msgstr ""
541
531
 
542
- #: templates/wagtailimages/multiple/add.html:68
532
+ #: templates/wagtailimages/multiple/add.html:74
543
533
  msgid "Server Error"
544
534
  msgstr ""
545
535
 
546
- #: templates/wagtailimages/multiple/add.html:69
536
+ #: templates/wagtailimages/multiple/add.html:75
547
537
  msgid ""
548
538
  "Report this error to your website administrator with the following "
549
539
  "information:"
550
540
  msgstr ""
551
541
 
552
- #: templates/wagtailimages/multiple/add.html:72
542
+ #: templates/wagtailimages/multiple/add.html:78
553
543
  msgid "Image updated."
554
544
  msgstr ""
555
545
 
@@ -595,7 +585,7 @@ msgid_plural "%(num_parent_objects)d images have been added to %(collection)s"
595
585
  msgstr[0] ""
596
586
  msgstr[1] ""
597
587
 
598
- #: views/bulk_actions/delete.py:8 views/images.py:183
588
+ #: views/bulk_actions/delete.py:8 views/images.py:181
599
589
  msgid "Delete"
600
590
  msgstr ""
601
591
 
@@ -610,14 +600,6 @@ msgid_plural "%(num_parent_objects)d images have been deleted"
610
600
  msgstr[0] ""
611
601
  msgstr[1] ""
612
602
 
613
- #: views/chooser.py:51 views/chooser.py:318
614
- msgid "Upload"
615
- msgstr ""
616
-
617
- #: views/chooser.py:52 views/chooser.py:319
618
- msgid "Uploading…"
619
- msgstr ""
620
-
621
603
  #: views/chooser.py:317 widgets.py:13
622
604
  msgid "Choose an image"
623
605
  msgstr ""
@@ -630,45 +612,41 @@ msgstr ""
630
612
  msgid "Edit this image"
631
613
  msgstr ""
632
614
 
633
- #: views/images.py:47
615
+ #: views/images.py:45
634
616
  msgid "Newest"
635
617
  msgstr ""
636
618
 
637
- #: views/images.py:48
619
+ #: views/images.py:46
638
620
  msgid "Oldest"
639
621
  msgstr ""
640
622
 
641
- #: views/images.py:49
623
+ #: views/images.py:47
642
624
  msgid "Title: (A -> Z)"
643
625
  msgstr ""
644
626
 
645
- #: views/images.py:50
627
+ #: views/images.py:48
646
628
  msgid "Title: (Z -> A)"
647
629
  msgstr ""
648
630
 
649
- #: views/images.py:51
631
+ #: views/images.py:49
650
632
  msgid "File size: (low to high)"
651
633
  msgstr ""
652
634
 
653
- #: views/images.py:52
635
+ #: views/images.py:50
654
636
  msgid "File size: (high to low)"
655
637
  msgstr ""
656
638
 
657
- #: views/images.py:62 wagtail_hooks.py:52 wagtail_hooks.py:160
639
+ #: views/images.py:60 wagtail_hooks.py:52 wagtail_hooks.py:160
658
640
  msgid "Images"
659
641
  msgstr ""
660
642
 
661
- #: views/images.py:156
662
- #, python-format
663
- msgid "Image '%(image_title)s' updated."
664
- msgstr ""
665
-
666
- #: views/images.py:157
667
- msgid "Edit again"
643
+ #: views/images.py:129
644
+ msgid "The image could not be saved due to errors."
668
645
  msgstr ""
669
646
 
670
- #: views/images.py:161
671
- msgid "The image could not be saved due to errors."
647
+ #: views/images.py:160
648
+ #, python-format
649
+ msgid "Image '%(image_title)s' updated."
672
650
  msgstr ""
673
651
 
674
652
  #: views/images.py:178
@@ -677,18 +655,30 @@ msgid ""
677
655
  "the image."
678
656
  msgstr ""
679
657
 
658
+ #: views/images.py:211
659
+ msgid "Generate URL"
660
+ msgstr ""
661
+
662
+ #: views/images.py:318
663
+ msgid "Delete image"
664
+ msgstr ""
665
+
680
666
  #: views/images.py:336
681
667
  #, python-format
682
668
  msgid "Image '%(image_title)s' deleted."
683
669
  msgstr ""
684
670
 
685
- #: views/images.py:354
671
+ #: views/images.py:346
672
+ msgid "The image could not be created due to errors."
673
+ msgstr ""
674
+
675
+ #: views/images.py:367
686
676
  #, python-format
687
677
  msgid "Image '%(image_title)s' added."
688
678
  msgstr ""
689
679
 
690
- #: views/images.py:363
691
- msgid "The image could not be created due to errors."
680
+ #: views/multiple.py:29
681
+ msgid "Add images"
692
682
  msgstr ""
693
683
 
694
684
  #: wagtail_hooks.py:79
@@ -1,43 +1,36 @@
1
- # Generated by Django 4.0.7 on 2022-08-10 16:26
2
-
3
- from django import VERSION as DJANGO_VERSION
4
- from django.db import migrations
5
- import wagtail.images.models
6
-
7
-
8
- class Migration(migrations.Migration):
9
-
10
- dependencies = [
11
- ("wagtailimages", "0024_index_image_file_hash"),
12
- ]
13
-
14
- rendition_file_options = {
15
- "height_field": "height",
16
- "upload_to": wagtail.images.models.get_rendition_upload_to,
17
- "width_field": "width",
18
- }
19
- # See https://code.djangoproject.com/ticket/34192 - prior to Django 4.2, a callable storage
20
- # argument that returns default_storage would be incorrectly omitted from the deconstructed
21
- # field. We need to match that behaviour and include/omit it accordingly to prevent
22
- # makemigrations from seeing a difference and generating a spurious migration in
23
- # wagtail.images.
24
- if DJANGO_VERSION >= (4, 2):
25
- rendition_file_options["storage"] = wagtail.images.models.get_rendition_storage
26
-
27
- operations = [
28
- migrations.AlterField(
29
- model_name="image",
30
- name="file",
31
- field=wagtail.images.models.WagtailImageField(
32
- height_field="height",
33
- upload_to=wagtail.images.models.get_upload_to,
34
- verbose_name="file",
35
- width_field="width",
36
- ),
37
- ),
38
- migrations.AlterField(
39
- model_name="rendition",
40
- name="file",
41
- field=wagtail.images.models.WagtailImageField(**rendition_file_options),
42
- ),
43
- ]
1
+ # Generated by Django 4.0.7 on 2022-08-10 16:26
2
+
3
+ from django.db import migrations
4
+ import wagtail.images.models
5
+
6
+
7
+ class Migration(migrations.Migration):
8
+
9
+ dependencies = [
10
+ ("wagtailimages", "0024_index_image_file_hash"),
11
+ ]
12
+
13
+ rendition_file_options = {
14
+ "height_field": "height",
15
+ "upload_to": wagtail.images.models.get_rendition_upload_to,
16
+ "width_field": "width",
17
+ "storage": wagtail.images.models.get_rendition_storage,
18
+ }
19
+
20
+ operations = [
21
+ migrations.AlterField(
22
+ model_name="image",
23
+ name="file",
24
+ field=wagtail.images.models.WagtailImageField(
25
+ height_field="height",
26
+ upload_to=wagtail.images.models.get_upload_to,
27
+ verbose_name="file",
28
+ width_field="width",
29
+ ),
30
+ ),
31
+ migrations.AlterField(
32
+ model_name="rendition",
33
+ name="file",
34
+ field=wagtail.images.models.WagtailImageField(**rendition_file_options),
35
+ ),
36
+ ]
@@ -0,0 +1,20 @@
1
+ # Generated by Django 4.2.13 on 2024-08-05 22:17
2
+
3
+ from django.db import migrations, models
4
+
5
+
6
+ class Migration(migrations.Migration):
7
+
8
+ dependencies = [
9
+ ("wagtailimages", "0026_delete_uploadedimage"),
10
+ ]
11
+
12
+ operations = [
13
+ migrations.AddField(
14
+ model_name="image",
15
+ name="description",
16
+ field=models.CharField(
17
+ blank=True, default="", max_length=255, verbose_name="description"
18
+ ),
19
+ ),
20
+ ]