0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-28 08:48:04 +01:00
Commit Graph

12914 Commits

Author SHA1 Message Date
Matt Westcott
37784643e9 API docs for Panel 2022-04-22 17:25:30 +01:00
Matt Westcott
06abc49712 Add documentation for the panel rendering mechanism 2022-04-22 17:25:30 +01:00
Matt Westcott
f190b2dcac Fetch new translations from Transifex 2022-04-22 15:14:23 +01:00
Matt Westcott
262e94401a
Housekeeping to start work on 4.0 (#8420)
* Add release notes page for 4.0

* Version bump to 4.0

* Rotate deprecation warnings
2022-04-22 14:25:16 +01:00
Steve Stein
90ccbff15b
Add comment notifications switch back into tabs (#8392) 2022-04-22 13:05:13 +01:00
Sage Abdullah
e02c3ebc61 Add tests for calling delete and history views with i18n enabled 2022-04-22 13:04:49 +01:00
Sage Abdullah
98fa66d35e Call super().setup() after the model has been set 2022-04-22 13:04:49 +01:00
Sage Abdullah
dbccec63ab Use setup() method to set instance attributes in HistoryView 2022-04-22 13:04:49 +01:00
Sage Abdullah
c5c8b74ceb Check whether self.model is not None before calling issubclass in LocaleMixin 2022-04-22 13:04:49 +01:00
Sage Abdullah
57c5c4c9ea Use ModelPermissionPolicy in snippet views 2022-04-22 12:11:46 +01:00
Kalob Taulien
19c259d107
Slack button and link + license clarification
* Slack button; license clarification

* Updated link to wiki; better license wording
2022-04-21 09:43:31 -06:00
Karl Hobley
0d489543b8
Reinstate get_snippet_edit_handler with a deprecation warning (#8407) 2022-04-21 11:50:44 +01:00
Matt Westcott
86aa38329d
Fix release notes and updatemodulepaths to cover coreutils module rename (#8396)
Fixes #8376
2022-04-20 17:42:34 +01:00
Matt Westcott
a55136f55b linting fixes 2022-04-20 14:18:54 +01:00
sag᠎e
bc1a2ab114
Extract mixins from Snippet views and use it in generic create/edit/delete views (#8361) 2022-04-20 11:55:32 +01:00
Paarth Agarwal
da78e0f449 added full_url field for image rendition field api
- resolves #7558
2022-04-20 07:08:24 +10:00
Matt Westcott
fec647d8aa Fix constructor args on HelpPanel
Fixes #8373
2022-04-20 06:35:48 +10:00
Dan Swain
484ca159d2
Change 2.17 reference to 3.0 (#8389)
There will not be a 2.17 release
2022-04-19 16:56:51 +01:00
Vu Pham
68287e97e1 Add base_url_path functionality to ModelAdmin
- Co-Authored-By: Khanh Hoang <39248704+thoang43@users.noreply.github.com>
- adds ability to set `base_url_path` on ModelAdmin to override the `app_name`/`model` URL building behaviour
- fixes #8038
2022-04-18 14:32:18 +10:00
Simon Krull
4f3ec696ff Fix minor typo in the documentation - third party tutorial 2022-04-18 08:26:22 +10:00
luz paz
5c894345b9 Fix various user-facing and non-user-facing typos
- Found via `codespell -q 3 -S *.po,*.js`
2022-04-18 08:18:03 +10:00
Daniel Kirkham
c877bf9886 convert various documentation pages to Markdown
- Removes use of topic:: in docs as this directive is not needed
- resolves #8323
2022-04-18 08:16:27 +10:00
Thijs Kramer
667774f2fe clarify what happens when converting an external link to an internal link 2022-04-18 08:05:55 +10:00
Karl Hobley
b48e1c083c
Update myst_parser to v0.17.2 (#8380)
To resolve issue with the removed `attrs` module.

See: https://github.com/executablebooks/MyST-Parser/pull/557
2022-04-17 17:57:30 +01:00
Dan Braghis
4cc10322a1
Sync tree: cascade unpublish, move and delete (#7984)
* Add construct_synced_page_tree_list hook and use in page unpublish view

* Implement construct_synced_page_tree_list in simple_translation

but only when sync page tree is enabled

* Add hook documentation

* Add construct_synced_page_tree_list hook tests (#8058)

* Move translated and alias pages when WAGTAIL_I18N_ENABLED and WAGTAILSIMPLETRANSLATION_SYNC_PAGE_TREE are enabled

Co-Authored-By: Kalob Taulien <4743971+KalobTaulien@users.noreply.github.com>

* Delete corresponding translations when WAGTAIL_I18N_ENABLED and WAGTAILSIMPLETRANSLATION_SYNC_PAGE_TREE are true

Co-Authored-By: Kalob Taulien <4743971+KalobTaulien@users.noreply.github.com>

* Rename the hook to be more specific

* Update singular string version in confirm_move.html

* Update test test_translation_count_in_context

Co-authored-by: Kalob Taulien <4743971+KalobTaulien@users.noreply.github.com>
Co-authored-by: Karl Hobley <karl@kaed.uk>
2022-04-17 17:34:38 +01:00
sag᠎e
84c414e758
Refactor Snippets list view to extend from generic IndexView (#8335) 2022-04-16 11:47:06 +01:00
Andy Babic
0c1ecc35f1
Add guidance on rendition prefetching to docs (#8363) 2022-04-16 11:18:23 +01:00
Karl Hobley
72e0be7a45
Remove an unused import
Usages of this import were removed across multiple PRs so this wasn't picked up before merge
2022-04-16 11:00:35 +01:00
sag᠎e
44b1ee6af7
Refactor Snippets index view to extend from TemplateView (#8352) 2022-04-16 10:27:18 +01:00
sag᠎e
809b840e17
Refactor Snippets delete view to extend from generic DeleteView (#8346) 2022-04-14 21:31:53 +01:00
sag᠎e
06eba334fa
Explicitly specify app_label, model_name, and pk in Snippet views setup() params (#8364) 2022-04-14 19:04:46 +01:00
sag᠎e
03fc621129
Refactor Snippets edit view to extend from generic EditView (#8344) 2022-04-14 15:02:10 +01:00
sag᠎e
4997507359
Refactor Snippets usage view to extend from generic IndexView (#8351) 2022-04-14 12:57:14 +01:00
Matt Westcott
f5919513d5 Cut down release note for image prefetching and add changelog entry 2022-04-14 12:56:04 +01:00
Andy Babic
7838e58095 Update release notes 2022-04-14 12:12:23 +01:00
Andy Babic
2d5571f316 Include the new methods in the docs 2022-04-14 12:12:23 +01:00
Andy Babic
1580a29806 Add newly generated renditions to the prefetch cache 2022-04-14 12:12:23 +01:00
Andy Babic
0e188e5655 Add tests 2022-04-14 12:12:23 +01:00
Andy Babic
3592a28f0a Add docstrings 2022-04-14 12:12:23 +01:00
Andy Babic
2a09954bd8 - Rename 'lookup_rendition' to 'find_existing_rendition' for clarity
- Drop the 'all_renditions_prefetched' option in favour of doing the most optimal thing (90% of cases) by default
2022-04-14 12:12:23 +01:00
Andy Babic
7b6d4db4e5 Further improve readability by separating out file-generation code from Rendition object creation 2022-04-14 12:12:23 +01:00
Andy Babic
84189aab90 Restore ability to lookup from the cache after prefetched data has been checked 2022-04-14 12:12:23 +01:00
Andy Babic
9f8aad06b1 Update lookup_rendition to use prefetched data if available, and introduced the 'all_renditions_prefetched' flag for determining what should happen if the rendition isn't found in the prefetched data 2022-04-14 12:12:23 +01:00
Andy Babic
aa4cc9d51e Break rendition lookup logic out of AbstractRendition.get_rendition() into a new 'lookup_rendition' method 2022-04-14 12:12:23 +01:00
Andy Babic
e34ffa93f9 Move rendition generation logic out of AbstractImage.get_rendition() into a new method 2022-04-14 12:12:23 +01:00
Kalob Taulien
0f62b437d8
Updated screenshot for Wagtail 3 (#8331)
* Updated screnshot for Wagtail 3

* Updated screenshot for Wagtail 3.0
2022-04-14 12:09:17 +01:00
Steve Stein
6f10ae45c7
Fix issue with status sidebar history button & unlock button in message bar (#8356)
* Fix issue with lock unlock button in message bar, fix reversed logic on action_list_item

* Remove testin code from page-editor.js

* Remove comment count element fix, to address in another PR
2022-04-14 12:08:14 +01:00
Matt Westcott
6d2dcee4b9
Remove a stray reference to ChooserPanels (#8360)
These are no longer required in Wagtail 3
2022-04-14 11:09:31 +01:00
Matt Westcott
cdeb1cf479
Add use_json_field=True to all StreamField examples (#8359)
This argument should be used on all new StreamFields created under Wagtail 3. It does add some clutter to the examples, but only using it in select cases would create more confusion...
2022-04-14 11:09:19 +01:00
Karl Hobley
a78216320a
Close the side panel when comments are selected (#8357)
* Move page history button to after the side panel toggles

This was requested by Ben to make the "Info" button come first

* Close the side panel when comments are selected
2022-04-14 11:07:57 +01:00