0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-30 01:46:24 +01:00
Commit Graph

13767 Commits

Author SHA1 Message Date
Thibaud Colas
1fcf4cacbb
Add more items to 4.0 release notes (#9032) 2022-08-18 08:47:30 +01:00
Matt Westcott
9aeb2e3e49 Ensure telepath adapter gets registered for document chooser widget
Fixes #9010. `wagtail.documents.widgets` is no longer reliably imported on startup now that the chooser widget is constructed within wagtail.documents.views.chooser instead, so the telepath adapter wasn't getting register. This meant that DocumentChooserBlocks in StreamField were using the base chooser implementation, which didn't include customisations such as populating the title field from the file upload field. Fix this by making ChooserViewSet responsible for registering the telepath adapter.
2022-08-17 18:24:18 +01:00
Matt Westcott
cc4675aa5e Use correct classnames for showing/hiding edit button on chooser widget
Fixes #9008
2022-08-17 07:50:29 +10:00
Stefan Hammer
3bf4a0693c Fixed init method of legacy BaseSetting class
The "return" statement was only a minor improvement, the breaking code was the passed "self" argument.

- fixes #8996
- fixes #9006
2022-08-17 07:45:31 +10:00
Matt Westcott
b4bc681865 Fix DocumentChooserBlock deconstruction for custom document models
Fixes #8989. The previous fix #9004 failed for custom document models because ChooserViewset assigns an internal name for the ChooserBlock class based on the model name, and if this is anything other than Document it won't match the name DocumentChooserBlock that it's exposed under in wagtail.documents.blocks. Fix this by replacing the `block_class` property with a `get_block_class` method that lets us specify the class name. As a bonus, user code that defines chooser blocks no longer has to directly hack the `__module__` attribute.
2022-08-16 20:50:04 +01:00
Matt Westcott
b740df734a Add missing chevron-down.svg
Fixes #8988
2022-08-16 19:40:44 +01:00
LB Johnston
666cc5e8e5 fix up legacy release note refs & use consistent format
- fix some broken refs that were lost in the migration to markdown files
- use lower_snake_case for all internal refs (most follow this convention)
- release process sub-section in docs should be named release schedule instead
2022-08-16 12:42:42 +01:00
LB Johnston
401e84dfd9 fix various typos and backtick usage in 4.0 changelog/release notes
- adds a ref to the new setting added for `WAGTAILADMIN_UNSAFE_PAGE_DELETION_LIMIT` - see #8703
2022-08-16 12:36:46 +01:00
LB Johnston
23ee3d8924 add changelog for #9000 2022-08-16 07:58:28 +10:00
Sage Abdullah
e4509f3432 Improve Revision model docs 2022-08-16 07:58:28 +10:00
Sage Abdullah
e864b9c4d1 Add docs for PreviewableMixin 2022-08-16 07:58:28 +10:00
Sage Abdullah
fb6ec3ad00 Add docs for DraftStateMixin 2022-08-16 07:58:28 +10:00
Sage Abdullah
cf3cea9a5b Add docs for RevisionMixin 2022-08-16 07:58:28 +10:00
Sage Abdullah
3151200288 Improve Page model reference documentation
- Use inline code for `Locale` and `TranslatableMixin` headers to be consistent with other classes in the page
- Move `locale` and `translation_key` of `TranslatableMixin` to its own "Database fields" section
- Add missing periods in Page.update_aliases parameter description
2022-08-16 07:58:28 +10:00
LB Johnston
92204aa0bb add changelog for #8993 & #9005 2022-08-16 07:37:30 +10:00
PaarthAgarwal
011099dd45 fixed console error for breadcrumbs 2022-08-16 07:35:23 +10:00
Matt Westcott
8564383ef5 remove stray console-log from page-editor.js 2022-08-16 06:13:30 +10:00
Matt Westcott
a6a94a9a04 Ensure DocumentChooserBlock can be deconstructed for migrations
Fixes #8989. Now that DocumentChooserBlock is constructed dynamically via wagtail.documents.viewsets.chooser, we need to explicitly set its `__module__` attribute so that the result of calling `deconstruct()` for migrations points back to the wagtail.documents.blocks module.

Also update the documentation for defining custom choosers, and add tests for deconstructing the other chooser blocks.
2022-08-15 15:38:54 -04:00
Matt Westcott
5ff6922eb5 Update CONTRIBUTORS.rst with new translators 2022-08-12 14:55:07 +01:00
Matt Westcott
a568b59808 Generate new strings for translation 2022-08-12 14:07:32 +01:00
Matt Westcott
9ee67a5fef Fetch new translations from Transifex 2022-08-12 14:06:14 +01:00
Matt Westcott
f24bccc3df Set BaseSetting deprecation to 5.0 2022-08-12 13:49:09 +01:00
Thibaud Colas
ca7f23d176
Update InlinePanel and StreamField styles for new designs (#8983) 2022-08-12 13:17:40 +01:00
Sage Abdullah
6d3ea0cb3e Add unpublish view and action menu item for snippets with DraftStateMixin 2022-08-12 14:00:59 +02:00
Sage Abdullah
2d23aea9bd Create new UnpublishView for reuse outside of pages 2022-08-12 14:00:59 +02:00
LB (Ben Johnston)
6a11ae711a
Only use hidden until-found in panels if browsers supports it (#8962) 2022-08-12 12:19:48 +01:00
Matt Westcott
d202624458 Set atomic = False when renaming PageRevision table
This allows it to complete on SQLite <3.26, as per https://github.com/wagtail/wagtail/issues/8635#issuecomment-1209385465
2022-08-12 09:52:02 +01:00
LB Johnston
51dfcd2fd9 changelog entry for #8873 2022-08-12 17:35:42 +10:00
Matt Westcott
5466981f96 rename show_locale_labels attribute to i18n_enabled
It brings the whole locale filtering logic into play, so it's used for more than just showing labels or not
2022-08-12 17:35:42 +10:00
Matt Westcott
ff121bfa90 Split out get_object_list and filter_object_list methods from browse view 2022-08-12 17:35:42 +10:00
Matt Westcott
8dd7a4cc93 Make show_locale_labels a property of the relevant column objects
This saves having to pass it in the template context
2022-08-12 17:35:42 +10:00
Matt Westcott
89c2d705a2 Extract a common base class for the link form views 2022-08-12 17:35:42 +10:00
Matt Westcott
84a8faaaa1 Split link form views into get/post cases 2022-08-12 17:35:42 +10:00
Matt Westcott
6c8b3de3e2 Convert page chooser views to class-based views 2022-08-12 17:35:42 +10:00
Matt Westcott
267cac0fe1 Remove outdated fixme comment and redundant results_only parameter 2022-08-12 17:35:42 +10:00
LB Johnston
3e6e9eb618 update docs/test spelling of colour 2022-08-12 17:29:16 +10:00
LB Johnston
9321cd9404 documentation - extending generic views - fix typo
- closing ``` (backticks) were missing
2022-08-12 17:20:24 +10:00
LB Johnston
7964e2b20d add contributor for #8978 2022-08-12 17:19:28 +10:00
Xabier Bello
e29bb7e062 Update images.md
BASE_URL no longer works.
2022-08-12 17:17:33 +10:00
Matt Westcott
ad73080a99 Fix tests for lock message to account for timezones 2022-08-11 17:06:17 +01:00
Matt Westcott
e5dd080fce Release note for #8917 2022-08-11 13:45:35 +01:00
Matt Westcott
bcd2a54067 Wording fixes 2022-08-11 13:45:35 +01:00
Karl Hobley
b095879297 Allow scheduled publishing to be cancelled from the editor 2022-08-11 13:17:59 +01:00
Karl Hobley
a425dd0683 Lock page when scheduled for publishing 2022-08-11 13:17:59 +01:00
Karl Hobley
a743bf962d Use lock objects in side panels and add help text for each state 2022-08-11 13:17:59 +01:00
Karl Hobley
40c1227edc Use Lock objects in page action menus
Removes about 20 queries
2022-08-11 13:17:58 +01:00
Karl Hobley
315d9a938a Refactor how lock banner messages are constructed 2022-08-11 13:17:37 +01:00
Karl Hobley
9dcf09d27f Implement a .get_lock() method on LockableMixin 2022-08-11 13:17:37 +01:00
Karl Hobley
1cec004d97 Extract page locking fields into a mixin 2022-08-11 13:17:37 +01:00
Sage Abdullah
fcbb494747 Show Status column in snippet chooser view if DraftStateMixin is applied 2022-08-11 10:03:32 +01:00