wagtail 7.1.2__py3-none-any.whl → 7.2rc1__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 (332) hide show
  1. wagtail/__init__.py +1 -1
  2. wagtail/actions/copy_page.py +1 -1
  3. wagtail/actions/create_alias.py +1 -1
  4. wagtail/actions/delete_page.py +1 -1
  5. wagtail/actions/publish_page_revision.py +1 -1
  6. wagtail/actions/publish_revision.py +1 -1
  7. wagtail/actions/revert_to_page_revision.py +1 -1
  8. wagtail/actions/unpublish.py +1 -1
  9. wagtail/actions/unpublish_page.py +1 -1
  10. wagtail/admin/auth.py +3 -1
  11. wagtail/admin/checks.py +2 -2
  12. wagtail/admin/filters.py +28 -1
  13. wagtail/admin/forms/collections.py +1 -1
  14. wagtail/admin/forms/comments.py +1 -1
  15. wagtail/admin/forms/models.py +1 -1
  16. wagtail/admin/forms/pages.py +1 -1
  17. wagtail/admin/forms/tags.py +1 -1
  18. wagtail/admin/locale/cs/LC_MESSAGES/django.mo +0 -0
  19. wagtail/admin/locale/cs/LC_MESSAGES/django.po +25 -1
  20. wagtail/admin/locale/en/LC_MESSAGES/django.po +278 -192
  21. wagtail/admin/locale/en/LC_MESSAGES/djangojs.po +29 -15
  22. wagtail/admin/locale/it/LC_MESSAGES/django.mo +0 -0
  23. wagtail/admin/locale/it/LC_MESSAGES/django.po +3 -2
  24. wagtail/admin/locale/nl/LC_MESSAGES/django.mo +0 -0
  25. wagtail/admin/locale/nl/LC_MESSAGES/django.po +57 -3
  26. wagtail/admin/locale/nl/LC_MESSAGES/djangojs.mo +0 -0
  27. wagtail/admin/locale/nl/LC_MESSAGES/djangojs.po +8 -2
  28. wagtail/admin/locale/ru/LC_MESSAGES/django.mo +0 -0
  29. wagtail/admin/locale/ru/LC_MESSAGES/django.po +58 -1
  30. wagtail/admin/locale/tr/LC_MESSAGES/django.mo +0 -0
  31. wagtail/admin/locale/tr/LC_MESSAGES/django.po +3 -2
  32. wagtail/admin/static/wagtailadmin/css/core.css +1 -1
  33. wagtail/admin/static/wagtailadmin/js/bulk-actions.js +1 -1
  34. wagtail/admin/static/wagtailadmin/js/chooser-modal.js +1 -1
  35. wagtail/admin/static/wagtailadmin/js/chooser-widget-telepath.js +1 -1
  36. wagtail/admin/static/wagtailadmin/js/chooser-widget.js +1 -1
  37. wagtail/admin/static/wagtailadmin/js/comments.js +1 -1
  38. wagtail/admin/static/wagtailadmin/js/core.js +1 -1
  39. wagtail/admin/static/wagtailadmin/js/core.js.LICENSE.txt +2 -2
  40. wagtail/admin/static/wagtailadmin/js/date-time-chooser.js +1 -1
  41. wagtail/admin/static/wagtailadmin/js/draftail.js +1 -1
  42. wagtail/admin/static/wagtailadmin/js/filtered-select.js +1 -1
  43. wagtail/admin/static/wagtailadmin/js/icons.js +1 -1
  44. wagtail/admin/static/wagtailadmin/js/modal-workflow.js +1 -1
  45. wagtail/admin/static/wagtailadmin/js/page-chooser-modal.js +1 -1
  46. wagtail/admin/static/wagtailadmin/js/page-chooser-telepath.js +1 -1
  47. wagtail/admin/static/wagtailadmin/js/page-chooser.js +1 -1
  48. wagtail/admin/static/wagtailadmin/js/privacy-switch.js +1 -1
  49. wagtail/admin/static/wagtailadmin/js/sidebar.js +1 -1
  50. wagtail/admin/static/wagtailadmin/js/task-chooser-modal.js +1 -1
  51. wagtail/admin/static/wagtailadmin/js/task-chooser.js +1 -1
  52. wagtail/admin/static/wagtailadmin/js/telepath/blocks.js +1 -1
  53. wagtail/admin/static/wagtailadmin/js/telepath/telepath.js +1 -1
  54. wagtail/admin/static/wagtailadmin/js/telepath/widgets.js +1 -1
  55. wagtail/admin/static/wagtailadmin/js/userbar.js +1 -1
  56. wagtail/admin/static/wagtailadmin/js/userbar.js.LICENSE.txt +2 -2
  57. wagtail/admin/static/wagtailadmin/js/vendor/bootstrap-modal.js +1 -1
  58. wagtail/admin/static/wagtailadmin/js/vendor/bootstrap-transition.js +1 -1
  59. wagtail/admin/static/wagtailadmin/js/vendor/jquery-3.6.0.min.js +1 -1
  60. wagtail/admin/static/wagtailadmin/js/vendor/jquery-ui-1.13.2.min.js +1 -1
  61. wagtail/admin/static/wagtailadmin/js/vendor/jquery.datetimepicker.js +1 -1
  62. wagtail/admin/static/wagtailadmin/js/vendor/jquery.fileupload-process.js +1 -1
  63. wagtail/admin/static/wagtailadmin/js/vendor/jquery.fileupload.js +1 -1
  64. wagtail/admin/static/wagtailadmin/js/vendor/jquery.iframe-transport.js +1 -1
  65. wagtail/admin/static/wagtailadmin/js/vendor/tag-it.js +1 -1
  66. wagtail/admin/static/wagtailadmin/js/vendor.js +1 -1
  67. wagtail/admin/static/wagtailadmin/js/vendor.js.LICENSE.txt +1 -1
  68. wagtail/admin/static/wagtailadmin/js/wagtailadmin.js +1 -1
  69. wagtail/admin/static/wagtailadmin/js/workflow-action.js +1 -1
  70. wagtail/admin/templates/wagtailadmin/account/account.html +2 -0
  71. wagtail/admin/templates/wagtailadmin/base.html +14 -0
  72. wagtail/admin/templates/wagtailadmin/generic/chooser/chooser.html +2 -1
  73. wagtail/admin/templates/wagtailadmin/generic/chooser/creation_form.html +2 -1
  74. wagtail/admin/templates/wagtailadmin/panels/multi_field_panel_child.html +1 -1
  75. wagtail/admin/templates/wagtailadmin/panels/object_list.html +1 -1
  76. wagtail/admin/templates/wagtailadmin/panels/tabbed_interface.html +3 -2
  77. wagtail/admin/templates/wagtailadmin/shared/formatted_field.html +1 -1
  78. wagtail/admin/templates/wagtailadmin/shared/forms/single_checkbox.html +1 -1
  79. wagtail/admin/templates/wagtailadmin/shared/keyboard_shortcuts_dialog.html +19 -0
  80. wagtail/admin/templates/wagtailadmin/shared/panel.html +1 -1
  81. wagtail/admin/templates/wagtailadmin/shared/set_privacy.html +15 -0
  82. wagtail/admin/templates/wagtailadmin/shared/side_panels/checks.html +28 -1
  83. wagtail/admin/templates/wagtailadmin/shared/workflow_history/detail.html +2 -2
  84. wagtail/admin/templates/wagtailadmin/{pages/listing/_ordering_header.html → tables/ordering_header.html} +2 -2
  85. wagtail/admin/templates/wagtailadmin/tables/title_cell.html +1 -1
  86. wagtail/admin/templates/wagtailadmin/widgets/{daterange_input.html → range_input.html} +1 -1
  87. wagtail/admin/templates/wagtailadmin/workflows/task_chooser/chooser.html +4 -2
  88. wagtail/admin/templatetags/wagtailadmin_tags.py +41 -22
  89. wagtail/admin/tests/api/test_pages.py +7 -7
  90. wagtail/admin/tests/api/test_renderer_classes.py +16 -0
  91. wagtail/admin/tests/pages/test_create_page.py +34 -2
  92. wagtail/admin/tests/pages/test_edit_page.py +128 -14
  93. wagtail/admin/tests/pages/test_explorer_view.py +34 -7
  94. wagtail/admin/tests/pages/test_reorder_page.py +11 -0
  95. wagtail/admin/tests/test_collections_views.py +12 -0
  96. wagtail/admin/tests/test_edit_handlers.py +3 -3
  97. wagtail/admin/tests/test_filters.py +2 -2
  98. wagtail/admin/tests/test_keyboard_shortcuts.py +52 -2
  99. wagtail/admin/tests/test_menu.py +0 -2
  100. wagtail/admin/tests/test_privacy.py +16 -16
  101. wagtail/admin/tests/test_templatetags.py +137 -0
  102. wagtail/admin/tests/test_workflows.py +34 -0
  103. wagtail/admin/tests/viewsets/test_model_viewset.py +322 -0
  104. wagtail/admin/ui/tables/orderable.py +73 -0
  105. wagtail/admin/ui/tables/pages.py +3 -13
  106. wagtail/admin/views/collection_privacy.py +6 -2
  107. wagtail/admin/views/generic/__init__.py +1 -0
  108. wagtail/admin/views/generic/mixins.py +20 -2
  109. wagtail/admin/views/generic/models.py +67 -1
  110. wagtail/admin/views/generic/ordering.py +79 -0
  111. wagtail/admin/views/home.py +3 -3
  112. wagtail/admin/views/page_privacy.py +5 -2
  113. wagtail/admin/views/pages/create.py +1 -1
  114. wagtail/admin/views/pages/edit.py +2 -2
  115. wagtail/admin/views/pages/listing.py +7 -42
  116. wagtail/admin/views/pages/move.py +1 -1
  117. wagtail/admin/views/pages/ordering.py +1 -1
  118. wagtail/admin/viewsets/base.py +1 -1
  119. wagtail/admin/viewsets/model.py +49 -1
  120. wagtail/admin/wagtail_hooks.py +2 -1
  121. wagtail/admin/widgets/slug.py +10 -10
  122. wagtail/api/v2/serializers.py +1 -1
  123. wagtail/api/v2/tests/test_renderer_classes.py +32 -0
  124. wagtail/apps.py +2 -0
  125. wagtail/bin/wagtail.py +1 -1
  126. wagtail/contrib/forms/locale/en/LC_MESSAGES/django.po +14 -14
  127. wagtail/contrib/forms/locale/nl/LC_MESSAGES/django.mo +0 -0
  128. wagtail/contrib/forms/locale/nl/LC_MESSAGES/django.po +19 -2
  129. wagtail/contrib/forms/locale/ru/LC_MESSAGES/django.mo +0 -0
  130. wagtail/contrib/forms/locale/ru/LC_MESSAGES/django.po +18 -1
  131. wagtail/contrib/frontend_cache/tests.py +4 -2
  132. wagtail/contrib/redirects/locale/en/LC_MESSAGES/django.po +4 -4
  133. wagtail/contrib/redirects/tests/test_tmp_storages.py +20 -0
  134. wagtail/contrib/redirects/tmp_storages.py +1 -1
  135. wagtail/contrib/redirects/views.py +3 -3
  136. wagtail/contrib/search_promotions/locale/en/LC_MESSAGES/django.po +3 -3
  137. wagtail/contrib/search_promotions/locale/tr/LC_MESSAGES/django.mo +0 -0
  138. wagtail/contrib/search_promotions/locale/tr/LC_MESSAGES/django.po +43 -3
  139. wagtail/contrib/search_promotions/static/wagtailsearchpromotions/js/query-chooser-modal.js +1 -1
  140. wagtail/contrib/search_promotions/views/settings.py +2 -2
  141. wagtail/contrib/settings/locale/cs/LC_MESSAGES/django.mo +0 -0
  142. wagtail/contrib/settings/locale/cs/LC_MESSAGES/django.po +6 -1
  143. wagtail/contrib/settings/locale/en/LC_MESSAGES/django.po +1 -1
  144. wagtail/contrib/settings/locale/nl/LC_MESSAGES/django.mo +0 -0
  145. wagtail/contrib/settings/locale/nl/LC_MESSAGES/django.po +6 -2
  146. wagtail/contrib/settings/locale/ru/LC_MESSAGES/django.mo +0 -0
  147. wagtail/contrib/settings/locale/ru/LC_MESSAGES/django.po +6 -1
  148. wagtail/contrib/settings/tests/site_specific/test_admin.py +40 -6
  149. wagtail/contrib/simple_translation/locale/en/LC_MESSAGES/django.po +1 -1
  150. wagtail/contrib/styleguide/locale/en/LC_MESSAGES/django.po +1 -1
  151. wagtail/contrib/styleguide/templates/wagtailstyleguide/base.html +5 -5
  152. wagtail/contrib/table_block/blocks.py +1 -0
  153. wagtail/contrib/table_block/locale/en/LC_MESSAGES/django.po +5 -1
  154. wagtail/contrib/table_block/static/table_block/js/table.js +1 -1
  155. wagtail/contrib/typed_table_block/locale/en/LC_MESSAGES/django.po +1 -1
  156. wagtail/contrib/typed_table_block/static/typed_table_block/js/typed_table_block.js +1 -1
  157. wagtail/coreutils.py +5 -5
  158. wagtail/documents/forms.py +18 -1
  159. wagtail/documents/locale/en/LC_MESSAGES/django.po +10 -10
  160. wagtail/documents/locale/nl/LC_MESSAGES/django.mo +0 -0
  161. wagtail/documents/locale/nl/LC_MESSAGES/django.po +9 -0
  162. wagtail/documents/locale/ru/LC_MESSAGES/django.mo +0 -0
  163. wagtail/documents/locale/ru/LC_MESSAGES/django.po +9 -0
  164. wagtail/documents/models.py +1 -1
  165. wagtail/documents/static/wagtaildocs/js/add-multiple.js +1 -1
  166. wagtail/documents/static/wagtaildocs/js/document-chooser-modal.js +1 -1
  167. wagtail/documents/static/wagtaildocs/js/document-chooser-telepath.js +1 -1
  168. wagtail/documents/static/wagtaildocs/js/document-chooser.js +1 -1
  169. wagtail/documents/templates/wagtaildocs/documents/add.html +0 -34
  170. wagtail/documents/tests/test_admin_views.py +132 -26
  171. wagtail/documents/tests/test_collection_privacy.py +18 -4
  172. wagtail/documents/tests/test_form_overrides.py +1 -1
  173. wagtail/documents/tests/test_search.py +21 -8
  174. wagtail/documents/views/documents.py +1 -1
  175. wagtail/embeds/locale/en/LC_MESSAGES/django.po +1 -1
  176. wagtail/embeds/static/wagtailembeds/js/embed-chooser-modal.js +1 -1
  177. wagtail/images/forms.py +16 -1
  178. wagtail/images/locale/cs/LC_MESSAGES/django.mo +0 -0
  179. wagtail/images/locale/cs/LC_MESSAGES/django.po +12 -1
  180. wagtail/images/locale/en/LC_MESSAGES/django.po +57 -46
  181. wagtail/images/locale/nl/LC_MESSAGES/django.mo +0 -0
  182. wagtail/images/locale/nl/LC_MESSAGES/django.po +37 -14
  183. wagtail/images/locale/ru/LC_MESSAGES/django.mo +0 -0
  184. wagtail/images/locale/ru/LC_MESSAGES/django.po +20 -1
  185. wagtail/images/models.py +1 -1
  186. wagtail/images/static/wagtailimages/js/add-multiple.js +1 -1
  187. wagtail/images/static/wagtailimages/js/focal-point-chooser.js +1 -1
  188. wagtail/images/static/wagtailimages/js/image-block.js +1 -1
  189. wagtail/images/static/wagtailimages/js/image-chooser-modal.js +1 -1
  190. wagtail/images/static/wagtailimages/js/image-chooser-telepath.js +1 -1
  191. wagtail/images/static/wagtailimages/js/image-chooser.js +1 -1
  192. wagtail/images/static/wagtailimages/js/image-url-generator.js +1 -1
  193. wagtail/images/static/wagtailimages/js/vendor/jquery.Jcrop.min.js +1 -1
  194. wagtail/images/static/wagtailimages/js/vendor/jquery.fileupload-image.js +1 -1
  195. wagtail/images/static/wagtailimages/js/vendor/jquery.fileupload-validate.js +1 -1
  196. wagtail/images/static/wagtailimages/js/vendor/load-image.min.js +1 -1
  197. wagtail/images/templates/wagtailimages/chooser/chooser.html +22 -13
  198. wagtail/images/templates/wagtailimages/chooser/image_preview_column_cell.html +10 -0
  199. wagtail/images/templates/wagtailimages/chooser/results.html +24 -20
  200. wagtail/images/templates/wagtailimages/chooser/title_column_cell.html +15 -0
  201. wagtail/images/templates/wagtailimages/images/add.html +0 -34
  202. wagtail/images/templates/wagtailimages/images/index.html +3 -3
  203. wagtail/images/templates/wagtailimages/images/index_results.html +1 -1
  204. wagtail/images/templates/wagtailimages/images/layout_toggle_button.html +8 -7
  205. wagtail/images/templatetags/wagtailimages_tags.py +2 -2
  206. wagtail/images/tests/test_admin_views.py +87 -0
  207. wagtail/images/tests/test_form_overrides.py +1 -1
  208. wagtail/images/tests/test_models.py +48 -9
  209. wagtail/images/views/chooser.py +66 -2
  210. wagtail/locale/en/LC_MESSAGES/django.po +55 -55
  211. wagtail/locale/is_IS/LC_MESSAGES/django.mo +0 -0
  212. wagtail/locale/is_IS/LC_MESSAGES/django.po +3 -3
  213. wagtail/locale/nl/LC_MESSAGES/django.mo +0 -0
  214. wagtail/locale/nl/LC_MESSAGES/django.po +11 -2
  215. wagtail/locale/ru/LC_MESSAGES/django.mo +0 -0
  216. wagtail/locale/ru/LC_MESSAGES/django.po +11 -1
  217. wagtail/locales/locale/en/LC_MESSAGES/django.po +1 -1
  218. wagtail/locales/locale/nl/LC_MESSAGES/django.mo +0 -0
  219. wagtail/locales/locale/nl/LC_MESSAGES/django.po +12 -1
  220. wagtail/locales/locale/ru/LC_MESSAGES/django.mo +0 -0
  221. wagtail/locales/locale/ru/LC_MESSAGES/django.po +10 -1
  222. wagtail/locales/views.py +2 -2
  223. wagtail/models/orderable.py +10 -0
  224. wagtail/models/pages.py +9 -11
  225. wagtail/models/sites.py +1 -1
  226. wagtail/models/workflows.py +8 -5
  227. wagtail/project_template/home/tests.py +6 -7
  228. wagtail/project_template/project_name/settings/base.py +9 -9
  229. wagtail/project_template/requirements.txt +1 -1
  230. wagtail/query.py +7 -2
  231. wagtail/rich_text/rewriters.py +1 -1
  232. wagtail/search/apps.py +4 -49
  233. wagtail/search/backends/__init__.py +1 -113
  234. wagtail/search/backends/base.py +1 -547
  235. wagtail/search/backends/database/__init__.py +1 -50
  236. wagtail/search/backends/database/fallback.py +1 -253
  237. wagtail/search/backends/database/mysql/mysql.py +1 -700
  238. wagtail/search/backends/database/mysql/query.py +1 -258
  239. wagtail/search/backends/database/postgres/postgres.py +1 -749
  240. wagtail/search/backends/database/postgres/query.py +1 -83
  241. wagtail/search/backends/database/postgres/weights.py +1 -63
  242. wagtail/search/backends/database/sqlite/query.py +1 -294
  243. wagtail/search/backends/database/sqlite/sqlite.py +1 -719
  244. wagtail/search/backends/database/sqlite/utils.py +1 -35
  245. wagtail/search/backends/deprecation.py +45 -0
  246. wagtail/search/backends/elasticsearch7.py +18 -1260
  247. wagtail/search/backends/elasticsearch8.py +21 -96
  248. wagtail/search/backends/elasticsearch9.py +35 -0
  249. wagtail/search/backends/opensearch2.py +35 -0
  250. wagtail/search/backends/opensearch3.py +35 -0
  251. wagtail/search/index.py +1 -358
  252. wagtail/search/locale/en/LC_MESSAGES/django.po +2 -10
  253. wagtail/search/management/commands/update_index.py +1 -205
  254. wagtail/search/management/commands/wagtail_update_index.py +1 -4
  255. wagtail/search/models.py +32 -158
  256. wagtail/search/query.py +1 -114
  257. wagtail/search/queryset.py +1 -43
  258. wagtail/search/signal_handlers.py +1 -24
  259. wagtail/search/tasks.py +1 -10
  260. wagtail/search/tests/test_elasticsearch.py +22 -0
  261. wagtail/search/utils.py +1 -206
  262. wagtail/sites/locale/en/LC_MESSAGES/django.po +1 -1
  263. wagtail/snippets/locale/en/LC_MESSAGES/django.po +3 -3
  264. wagtail/snippets/locale/ru/LC_MESSAGES/django.mo +0 -0
  265. wagtail/snippets/locale/ru/LC_MESSAGES/django.po +8 -1
  266. wagtail/snippets/locale/tr/LC_MESSAGES/django.mo +0 -0
  267. wagtail/snippets/locale/tr/LC_MESSAGES/django.po +8 -1
  268. wagtail/snippets/static/wagtailsnippets/js/snippet-chooser-telepath.js +1 -1
  269. wagtail/snippets/static/wagtailsnippets/js/snippet-chooser.js +1 -1
  270. wagtail/snippets/tests/test_reordering.py +319 -0
  271. wagtail/snippets/tests/test_snippets.py +65 -12
  272. wagtail/snippets/views/snippets.py +16 -0
  273. wagtail/test/numberformat.py +30 -0
  274. wagtail/test/settings.py +35 -12
  275. wagtail/test/testapp/fields.py +12 -0
  276. wagtail/test/testapp/migrations/0056_commentablejsonpage.py +50 -0
  277. wagtail/test/testapp/migrations/0057_featurecompletetoy_sort_order.py +23 -0
  278. wagtail/test/testapp/migrations/0058_customlocktask.py +31 -0
  279. wagtail/test/testapp/models.py +27 -0
  280. wagtail/test/testapp/views.py +3 -1
  281. wagtail/test/utils/page_tests.py +17 -17
  282. wagtail/test/utils/template_tests.py +4 -6
  283. wagtail/test/utils/wagtail_tests.py +1 -2
  284. wagtail/tests/test_page_model.py +15 -0
  285. wagtail/{search/tests → tests}/test_page_search.py +29 -2
  286. wagtail/tests/test_search_fields.py +69 -0
  287. wagtail/tests/test_tests.py +62 -6
  288. wagtail/tests/test_workflow.py +25 -1
  289. wagtail/users/locale/cs/LC_MESSAGES/django.mo +0 -0
  290. wagtail/users/locale/cs/LC_MESSAGES/django.po +3 -0
  291. wagtail/users/locale/en/LC_MESSAGES/django.po +2 -2
  292. wagtail/users/locale/nl/LC_MESSAGES/django.mo +0 -0
  293. wagtail/users/locale/nl/LC_MESSAGES/django.po +6 -3
  294. wagtail/users/locale/ru/LC_MESSAGES/django.mo +0 -0
  295. wagtail/users/locale/ru/LC_MESSAGES/django.po +5 -1
  296. wagtail/users/locale/tr/LC_MESSAGES/django.mo +0 -0
  297. wagtail/users/locale/tr/LC_MESSAGES/django.po +78 -4
  298. wagtail/users/templates/wagtailusers/users/create.html +2 -0
  299. wagtail/users/templates/wagtailusers/users/edit.html +2 -0
  300. wagtail/users/tests/test_admin_views.py +4 -0
  301. wagtail/users/views/users.py +1 -1
  302. {wagtail-7.1.2.dist-info → wagtail-7.2rc1.dist-info}/METADATA +7 -6
  303. {wagtail-7.1.2.dist-info → wagtail-7.2rc1.dist-info}/RECORD +309 -315
  304. wagtail/admin/templates/wagtailadmin/collection_privacy/set_privacy.html +0 -13
  305. wagtail/admin/templates/wagtailadmin/page_privacy/set_privacy.html +0 -13
  306. wagtail/search/tests/__init__.py +0 -0
  307. wagtail/search/tests/elasticsearch_common_tests.py +0 -251
  308. wagtail/search/tests/test_backends.py +0 -1215
  309. wagtail/search/tests/test_db_backend.py +0 -62
  310. wagtail/search/tests/test_elasticsearch7_backend.py +0 -1452
  311. wagtail/search/tests/test_elasticsearch8_backend.py +0 -15
  312. wagtail/search/tests/test_index_functions.py +0 -256
  313. wagtail/search/tests/test_indexed_class.py +0 -157
  314. wagtail/search/tests/test_mysql_backend.py +0 -192
  315. wagtail/search/tests/test_postgres_backend.py +0 -210
  316. wagtail/search/tests/test_queries.py +0 -332
  317. wagtail/search/tests/test_related_fields.py +0 -102
  318. wagtail/search/tests/test_sqlite_backend.py +0 -52
  319. wagtail/test/search/__init__.py +0 -0
  320. wagtail/test/search/apps.py +0 -9
  321. wagtail/test/search/fixtures/search.json +0 -545
  322. wagtail/test/search/migrations/0001_initial.py +0 -146
  323. wagtail/test/search/migrations/0002_bookunindexed.py +0 -43
  324. wagtail/test/search/migrations/0003_book_summary.py +0 -18
  325. wagtail/test/search/migrations/__init__.py +0 -0
  326. wagtail/test/search/models.py +0 -137
  327. /wagtail/admin/templates/wagtailadmin/{pages/listing/_ordering_cell.html → tables/ordering_cell.html} +0 -0
  328. /wagtail/{search/checks.py → checks.py} +0 -0
  329. {wagtail-7.1.2.dist-info → wagtail-7.2rc1.dist-info}/WHEEL +0 -0
  330. {wagtail-7.1.2.dist-info → wagtail-7.2rc1.dist-info}/entry_points.txt +0 -0
  331. {wagtail-7.1.2.dist-info → wagtail-7.2rc1.dist-info}/licenses/LICENSE +0 -0
  332. {wagtail-7.1.2.dist-info → wagtail-7.2rc1.dist-info}/top_level.txt +0 -0
File without changes
@@ -1,9 +0,0 @@
1
- from django.apps import AppConfig
2
- from django.utils.translation import gettext_lazy as _
3
-
4
-
5
- class WagtailSearchTestsAppConfig(AppConfig):
6
- default_auto_field = "django.db.models.AutoField"
7
- name = "wagtail.test.search"
8
- label = "searchtests"
9
- verbose_name = _("Wagtail search tests")
@@ -1,545 +0,0 @@
1
- [
2
- {
3
- "pk": 1,
4
- "model": "searchtests.author",
5
- "fields": {
6
- "name": "George R.R. Martin",
7
- "date_of_birth": "1948-09-20"
8
- }
9
- },
10
- {
11
- "pk": 2,
12
- "model": "searchtests.author",
13
- "fields": {
14
- "name": "J. R. R. Tolkien",
15
- "date_of_birth": "1892-01-03"
16
- }
17
- },
18
- {
19
- "pk": 4,
20
- "model": "searchtests.author",
21
- "fields": {
22
- "name": "Isaac Asimov",
23
- "date_of_birth": "1920-01-02"
24
- }
25
- },
26
- {
27
- "pk": 5,
28
- "model": "searchtests.author",
29
- "fields": {
30
- "name": "David Ascher",
31
- "date_of_birth": null
32
- }
33
- },
34
- {
35
- "pk": 6,
36
- "model": "searchtests.author",
37
- "fields": {
38
- "name": "Mark Lutz",
39
- "date_of_birth": null
40
- }
41
- },
42
- {
43
- "pk": 7,
44
- "model": "searchtests.author",
45
- "fields": {
46
- "name": "Daniel Roy Greenfeld",
47
- "date_of_birth": null
48
- }
49
- },
50
- {
51
- "pk": 8,
52
- "model": "searchtests.author",
53
- "fields": {
54
- "name": "Audrey Roy Greenfeld",
55
- "date_of_birth": null
56
- }
57
- },
58
- {
59
- "pk": 9,
60
- "model": "searchtests.author",
61
- "fields": {
62
- "name": "Douglas Crockford",
63
- "date_of_birth": null
64
- }
65
- },
66
- {
67
- "pk": 10,
68
- "model": "searchtests.author",
69
- "fields": {
70
- "name": "David Flanagan",
71
- "date_of_birth": null
72
- }
73
- },
74
- {
75
- "pk": 11,
76
- "model": "searchtests.author",
77
- "fields": {
78
- "name": "Steve Klabnik",
79
- "date_of_birth": null
80
- }
81
- },
82
- {
83
- "pk": 12,
84
- "model": "searchtests.author",
85
- "fields": {
86
- "name": "Carol Nichols",
87
- "date_of_birth": null
88
- }
89
- },
90
- {
91
- "pk": 13,
92
- "model": "searchtests.author",
93
- "fields": {
94
- "name": "Jim Blandy",
95
- "date_of_birth": null
96
- }
97
- },
98
- {
99
- "pk": 14,
100
- "model": "searchtests.author",
101
- "fields": {
102
- "name": "Jason Orendorff",
103
- "date_of_birth": null
104
- }
105
- },
106
-
107
- {
108
- "pk": 1,
109
- "model": "searchtests.book",
110
- "fields": {
111
- "title": "A Game of Thrones",
112
- "authors": [1],
113
- "publication_date": "1996-08-01",
114
- "number_of_pages": 694
115
- }
116
- },
117
- {
118
- "pk": 2,
119
- "model": "searchtests.book",
120
- "fields": {
121
- "title": "A Clash of Kings",
122
- "authors": [1],
123
- "publication_date": "1998-01-01",
124
- "number_of_pages": 768
125
- }
126
- },
127
- {
128
- "pk": 3,
129
- "model": "searchtests.book",
130
- "fields": {
131
- "title": "A Storm of Swords",
132
- "authors": [1],
133
- "publication_date": "2000-01-01",
134
- "number_of_pages": 973
135
- }
136
- },
137
- {
138
- "pk": 4,
139
- "model": "searchtests.book",
140
- "fields": {
141
- "title": "The Fellowship of the Ring",
142
- "authors": [2],
143
- "publication_date": "1954-07-29",
144
- "number_of_pages": 423
145
- }
146
- },
147
- {
148
- "pk": 5,
149
- "model": "searchtests.book",
150
- "fields": {
151
- "title": "The Two Towers",
152
- "authors": [2],
153
- "publication_date": "1954-11-11",
154
- "number_of_pages": 352
155
- }
156
- },
157
- {
158
- "pk": 6,
159
- "model": "searchtests.book",
160
- "fields": {
161
- "title": "The Return of the King",
162
- "authors": [2],
163
- "publication_date": "1955-10-20",
164
- "number_of_pages": 440
165
- }
166
- },
167
- {
168
- "pk": 7,
169
- "model": "searchtests.book",
170
- "fields": {
171
- "title": "The Hobbit",
172
- "authors": [2],
173
- "publication_date": "1937-09-21",
174
- "number_of_pages": 320
175
- }
176
- },
177
- {
178
- "pk": 10,
179
- "model": "searchtests.book",
180
- "fields": {
181
- "title": "Foundation",
182
- "authors": [4],
183
- "publication_date": "1951-01-01",
184
- "number_of_pages": 255
185
- }
186
- },
187
- {
188
- "pk": 11,
189
- "model": "searchtests.book",
190
- "fields": {
191
- "title": "Learning Python",
192
- "authors": [5, 6],
193
- "publication_date": "1999-01-01",
194
- "number_of_pages": 1160
195
- }
196
- },
197
- {
198
- "pk": 12,
199
- "model": "searchtests.book",
200
- "fields": {
201
- "title": "Two Scoops of Django 1.11",
202
- "authors": [7, 8],
203
- "publication_date": "2017-04-26",
204
- "number_of_pages": 556
205
- }
206
- },
207
- {
208
- "pk": 13,
209
- "model": "searchtests.book",
210
- "fields": {
211
- "title": "JavaScript: The good parts",
212
- "authors": [9],
213
- "publication_date": "2008-05-18",
214
- "number_of_pages": 172
215
- }
216
- },
217
- {
218
- "pk": 14,
219
- "model": "searchtests.book",
220
- "fields": {
221
- "title": "JavaScript: The Definitive Guide",
222
- "authors": [10],
223
- "publication_date": "1998-06-11",
224
- "number_of_pages": 792
225
- }
226
- },
227
- {
228
- "pk": 15,
229
- "model": "searchtests.book",
230
- "fields": {
231
- "title": "The Rust Programming Language",
232
- "authors": [11, 12],
233
- "publication_date": "2018-05-22",
234
- "number_of_pages": 440
235
- }
236
- },
237
- {
238
- "pk": 16,
239
- "model": "searchtests.book",
240
- "fields": {
241
- "title": "Programming Rust",
242
- "authors": [13, 14],
243
- "publication_date": "2017-12-01",
244
- "number_of_pages": 622
245
- }
246
- },
247
- {
248
- "pk": 1,
249
- "model": "searchtests.unindexedbook",
250
- "fields": {
251
- "title": "A Game of Thrones U",
252
- "publication_date": "1996-08-01",
253
- "number_of_pages": 694
254
- }
255
- },
256
- {
257
- "pk": 2,
258
- "model": "searchtests.unindexedbook",
259
- "fields": {
260
- "title": "A Clash of Kings U",
261
- "publication_date": "1998-01-01",
262
- "number_of_pages": 768
263
- }
264
- },
265
- {
266
- "pk": 3,
267
- "model": "searchtests.unindexedbook",
268
- "fields": {
269
- "title": "A Storm of Swords U",
270
- "publication_date": "2000-01-01",
271
- "number_of_pages": 973
272
- }
273
- },
274
- {
275
- "pk": 4,
276
- "model": "searchtests.unindexedbook",
277
- "fields": {
278
- "title": "The Fellowship of the Ring U",
279
- "publication_date": "1954-07-29",
280
- "number_of_pages": 423
281
- }
282
- },
283
-
284
- {
285
- "pk": 1,
286
- "model": "searchtests.character",
287
- "fields": {
288
- "name": "Daenerys Targaryen",
289
- "novel": 1
290
- }
291
- },
292
- {
293
- "pk": 2,
294
- "model": "searchtests.character",
295
- "fields": {
296
- "name": "Jon Snow",
297
- "novel": 1
298
- }
299
- },
300
- {
301
- "pk": 3,
302
- "model": "searchtests.character",
303
- "fields": {
304
- "name": "Eddard Stark",
305
- "novel": 1
306
- }
307
- },
308
- {
309
- "pk": 4,
310
- "model": "searchtests.character",
311
- "fields": {
312
- "name": "Daenerys Targaryen",
313
- "novel": 2
314
- }
315
- },
316
- {
317
- "pk": 5,
318
- "model": "searchtests.character",
319
- "fields": {
320
- "name": "Jon Snow",
321
- "novel": 2
322
- }
323
- },
324
- {
325
- "pk": 6,
326
- "model": "searchtests.character",
327
- "fields": {
328
- "name": "Daenerys Targaryen",
329
- "novel": 3
330
- }
331
- },
332
- {
333
- "pk": 7,
334
- "model": "searchtests.character",
335
- "fields": {
336
- "name": "Jon Snow",
337
- "novel": 3
338
- }
339
- },
340
- {
341
- "pk": 8,
342
- "model": "searchtests.character",
343
- "fields": {
344
- "name": "Frodo Baggins",
345
- "novel": 4
346
- }
347
- },
348
- {
349
- "pk": 9,
350
- "model": "searchtests.character",
351
- "fields": {
352
- "name": "Bilbo Baggins",
353
- "novel": 4
354
- }
355
- },
356
- {
357
- "pk": 10,
358
- "model": "searchtests.character",
359
- "fields": {
360
- "name": "Gandalf",
361
- "novel": 4
362
- }
363
- },
364
- {
365
- "pk": 11,
366
- "model": "searchtests.character",
367
- "fields": {
368
- "name": "Frodo Baggins",
369
- "novel": 5
370
- }
371
- },
372
- {
373
- "pk": 12,
374
- "model": "searchtests.character",
375
- "fields": {
376
- "name": "Bilbo Baggins",
377
- "novel": 5
378
- }
379
- },
380
- {
381
- "pk": 13,
382
- "model": "searchtests.character",
383
- "fields": {
384
- "name": "Gandalf",
385
- "novel": 5
386
- }
387
- },
388
- {
389
- "pk": 14,
390
- "model": "searchtests.character",
391
- "fields": {
392
- "name": "Frodo Baggins",
393
- "novel": 6
394
- }
395
- },
396
- {
397
- "pk": 15,
398
- "model": "searchtests.character",
399
- "fields": {
400
- "name": "Bilbo Baggins",
401
- "novel": 6
402
- }
403
- },
404
- {
405
- "pk": 16,
406
- "model": "searchtests.character",
407
- "fields": {
408
- "name": "Gandalf",
409
- "novel": 6
410
- }
411
- },
412
- {
413
- "pk": 17,
414
- "model": "searchtests.character",
415
- "fields": {
416
- "name": "Bilbo Baggins",
417
- "novel": 7
418
- }
419
- },
420
- {
421
- "pk": 18,
422
- "model": "searchtests.character",
423
- "fields": {
424
- "name": "Thorin Oakenshield",
425
- "novel": 7
426
- }
427
- },
428
- {
429
- "pk": 19,
430
- "model": "searchtests.character",
431
- "fields": {
432
- "name": "Hari Seldon",
433
- "novel": 10
434
- }
435
- },
436
- {
437
- "pk": 20,
438
- "model": "searchtests.character",
439
- "fields": {
440
- "name": "Salvor Hardin",
441
- "novel": 10
442
- }
443
- },
444
-
445
- {
446
- "pk": 1,
447
- "model": "searchtests.novel",
448
- "fields": {
449
- "setting": "Westeros",
450
- "protagonist": null
451
- }
452
- },
453
- {
454
- "pk": 2,
455
- "model": "searchtests.novel",
456
- "fields": {
457
- "setting": "Westeros",
458
- "protagonist": null
459
- }
460
- },
461
- {
462
- "pk": 3,
463
- "model": "searchtests.novel",
464
- "fields": {
465
- "setting": "Westeros",
466
- "protagonist": null
467
- }
468
- },
469
- {
470
- "pk": 4,
471
- "model": "searchtests.novel",
472
- "fields": {
473
- "setting": "Middle Earth",
474
- "protagonist": 8
475
- }
476
- },
477
- {
478
- "pk": 5,
479
- "model": "searchtests.novel",
480
- "fields": {
481
- "setting": "Middle Earth",
482
- "protagonist": 11
483
- }
484
- },
485
- {
486
- "pk": 6,
487
- "model": "searchtests.novel",
488
- "fields": {
489
- "setting": "Middle Earth",
490
- "protagonist": 14
491
- }
492
- },
493
- {
494
- "pk": 7,
495
- "model": "searchtests.novel",
496
- "fields": {
497
- "setting": "Middle Earth",
498
- "protagonist": 17
499
- }
500
- },
501
- {
502
- "pk": 10,
503
- "model": "searchtests.novel",
504
- "fields": {
505
- "setting": "Galactic Empire",
506
- "protagonist": null
507
- }
508
- },
509
-
510
- {
511
- "pk": 11,
512
- "model": "searchtests.programmingguide",
513
- "fields": {
514
- "programming_language": "py"
515
- }
516
- },
517
- {
518
- "pk": 12,
519
- "model": "searchtests.programmingguide",
520
- "fields": {
521
- "programming_language": "py"
522
- }
523
- },
524
- {
525
- "pk": 13,
526
- "model": "searchtests.programmingguide",
527
- "fields": {
528
- "programming_language": "js"
529
- }
530
- },
531
- {
532
- "pk": 14,
533
- "model": "searchtests.programmingguide",
534
- "fields": {
535
- "programming_language": "js"
536
- }
537
- },
538
- {
539
- "pk": 15,
540
- "model": "searchtests.programmingguide",
541
- "fields": {
542
- "programming_language": "rs"
543
- }
544
- }
545
- ]
@@ -1,146 +0,0 @@
1
- # Generated by Django 1.11.6 on 2017-10-18 12:59
2
- from django.db import migrations, models
3
- import django.db.models.deletion
4
- import taggit.managers
5
- import wagtail.search.index
6
-
7
-
8
- class Migration(migrations.Migration):
9
-
10
- initial = True
11
-
12
- dependencies = [
13
- ("taggit", "0002_auto_20150616_2121"),
14
- ]
15
-
16
- operations = [
17
- migrations.CreateModel(
18
- name="Author",
19
- fields=[
20
- (
21
- "id",
22
- models.AutoField(
23
- auto_created=True,
24
- primary_key=True,
25
- serialize=False,
26
- verbose_name="ID",
27
- ),
28
- ),
29
- ("name", models.CharField(max_length=255)),
30
- ("date_of_birth", models.DateField(null=True)),
31
- ],
32
- bases=(models.Model, wagtail.search.index.Indexed),
33
- ),
34
- migrations.CreateModel(
35
- name="Book",
36
- fields=[
37
- (
38
- "id",
39
- models.AutoField(
40
- auto_created=True,
41
- primary_key=True,
42
- serialize=False,
43
- verbose_name="ID",
44
- ),
45
- ),
46
- ("title", models.CharField(max_length=255)),
47
- ("publication_date", models.DateField()),
48
- ("number_of_pages", models.IntegerField()),
49
- ],
50
- bases=(models.Model, wagtail.search.index.Indexed),
51
- ),
52
- migrations.CreateModel(
53
- name="Character",
54
- fields=[
55
- (
56
- "id",
57
- models.AutoField(
58
- auto_created=True,
59
- primary_key=True,
60
- serialize=False,
61
- verbose_name="ID",
62
- ),
63
- ),
64
- ("name", models.CharField(max_length=255)),
65
- ],
66
- ),
67
- migrations.CreateModel(
68
- name="Novel",
69
- fields=[
70
- (
71
- "book_ptr",
72
- models.OneToOneField(
73
- auto_created=True,
74
- on_delete=django.db.models.deletion.CASCADE,
75
- parent_link=True,
76
- primary_key=True,
77
- serialize=False,
78
- to="searchtests.Book",
79
- ),
80
- ),
81
- ("setting", models.CharField(max_length=255)),
82
- (
83
- "protagonist",
84
- models.OneToOneField(
85
- null=True,
86
- on_delete=django.db.models.deletion.SET_NULL,
87
- related_name="+",
88
- to="searchtests.Character",
89
- ),
90
- ),
91
- ],
92
- bases=("searchtests.book",),
93
- ),
94
- migrations.CreateModel(
95
- name="ProgrammingGuide",
96
- fields=[
97
- (
98
- "book_ptr",
99
- models.OneToOneField(
100
- auto_created=True,
101
- on_delete=django.db.models.deletion.CASCADE,
102
- parent_link=True,
103
- primary_key=True,
104
- serialize=False,
105
- to="searchtests.Book",
106
- ),
107
- ),
108
- (
109
- "programming_language",
110
- models.CharField(
111
- choices=[
112
- ("py", "Python"),
113
- ("js", "JavaScript"),
114
- ("rs", "Rust"),
115
- ],
116
- max_length=255,
117
- ),
118
- ),
119
- ],
120
- bases=("searchtests.book",),
121
- ),
122
- migrations.AddField(
123
- model_name="book",
124
- name="authors",
125
- field=models.ManyToManyField(related_name="books", to="searchtests.Author"),
126
- ),
127
- migrations.AddField(
128
- model_name="book",
129
- name="tags",
130
- field=taggit.managers.TaggableManager(
131
- help_text="A comma-separated list of tags.",
132
- through="taggit.TaggedItem",
133
- to="taggit.Tag",
134
- verbose_name="Tags",
135
- ),
136
- ),
137
- migrations.AddField(
138
- model_name="character",
139
- name="novel",
140
- field=models.ForeignKey(
141
- on_delete=django.db.models.deletion.CASCADE,
142
- related_name="characters",
143
- to="searchtests.Novel",
144
- ),
145
- ),
146
- ]