Wykres commitów

915 Commity (a5ff33ebe20611a7953e7aa5c8df50451636ee89)

Autor SHA1 Wiadomość Data
Etty c5f238f98d Deprecate insert_editor_css in favor of insert_global_admin_css (#10499)
Fixes #10402
2023-06-01 16:28:00 +01:00
LB Johnston aa9e9cddc7 Resolve multiple typos (spelling and grammar)
- Optimized/Customized/Catregorize -> Optimised/Customised/Categorise
- Github -> GitHub (80% were spelt with capital H, this is the way GitHub spells itself)
- GitPod -> Gitpod (most were without the capital P, Gitpod's site does not use capital P)
- Remove duplicate words (to to, the the)
- De-coupled -> decoupled
- implementors -> implementers (all other references used 'site implementers' so just aligning with the common case)
- Fix a/an usage in one case
- Fix one comment usage of ok, replace with OK
2023-05-30 21:07:37 +10:00
LB Johnston 5292f7dc1f Docs - fix whitespace formatting (Prettier) 2023-05-30 07:25:21 +10:00
Sage Abdullah 0c075fb8de Replace mentions of ModelAdmin with their snippets equivalent 2023-05-24 11:06:00 +01:00
Sage Abdullah 6ec734f836 Add separate headings for each snippets view customisation 2023-05-24 11:06:00 +01:00
Thibaud Colas f372551a83 Fix StreamBlock documentation indentation 2023-05-20 07:21:48 +10:00
Daniel Kirkham c895e9031b Fix treebeard link 2023-05-14 07:40:13 +10:00
LB Johnston f1560625aa Docs - fix minor typo on Panels reference 2023-05-09 17:43:06 +10:00
Sage Abdullah 40b828a767 Link to RFC 85 and mention modeladmin deprecation in future release 2023-05-02 13:39:39 +01:00
Andy Babic 3d7b540b10 Update docs 2023-04-25 16:06:40 +01:00
Onno T 4d9f4898de Document how to add non-ModelAdmin views to a ModelAdminGroup (#10022) 2023-04-21 18:26:03 +01:00
Matt Westcott 4a47bc611b Remove old versionadded / versionchanged notes 2023-04-21 13:47:10 +01:00
Daniel Kirkham 659251b8a7 Added Documentation 2023-04-20 11:21:03 +01:00
sag᠎e ed36b5b9b6
Improve customisability of the accessibility checker configuration. Fix #10137 (#10333)
* Extract userbar BaseItem.get_context_data()
* Extract Axe config into smaller attributes and methods for easier overrides
* Add TypeScript interface for WagtailAxeConfiguration
* Improve typings for userbar.ts
* Separate Axe `runOnly` and `rules` options
* Pass request object to all axe configuration methods
* Remove Axe runOnly option if it's falsy
* Add docs for customising the accessibility checker
* Use lists for Axe include and exclude selectors
* Parse JSON script when testing accessibility checker config
* Add tests for customising accessibility checker configuration

Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2023-04-20 07:46:56 +01:00
Sage Abdullah 7ba2098d1a Add docs and tests for grouped snippets registration 2023-04-19 15:13:42 +01:00
Sage Abdullah 5fb4d6316f Allow SnippetViewSet.model to be defined directly on the class 2023-04-19 15:13:42 +01:00
Sage Abdullah dde58c718d Add docs and tests for separate menu item registrations for Snippets 2023-04-19 15:13:42 +01:00
Sage Abdullah 66c0ef48e9 Add docs for setting panels/edit_handler on SnippetViewSet 2023-04-19 13:24:17 +01:00
Sage Abdullah d696009a36 Revamp panel types documentation and other docs that reference it
This removes the parameters that come from the base Panel class (e.g.
heading, classname, etc.) from the specific panel types to avoid
repetition. Instead, these parameters are properly documented in the
separate "Panel customisation" section. They are also explicitly listed
in the Panel API reference.
2023-04-18 02:49:04 +01:00
Sage Abdullah eb49f3cdf0 Add docs for FieldPanel's icon parameter 2023-04-18 02:49:04 +01:00
Sage Abdullah 167471b1f7 Allow customising the search_fields and search backend to use via SnippetViewSet (#10290) 2023-04-18 00:06:09 +01:00
Sage Abdullah 3965ceedfa Allow default ordering of Snippets IndexView to be specified via SnippetViewSet (#10276) 2023-04-17 23:58:20 +01:00
Sage Abdullah 87cbf01894 Add docs and tests for overriding SnippetViewSet.get_queryset() 2023-04-14 12:34:11 +01:00
Sage Abdullah dc6c0b0949 Allow overriding SnippetViewSet template prefix 2023-04-13 17:53:58 +01:00
Sage Abdullah f2ab3ae774 Add docs and tests for Snippets template overrides 2023-04-13 17:53:58 +01:00
Sage Abdullah 1992c72791 Add missing docs for chooser_viewset_class 2023-04-13 17:53:58 +01:00
Thibaud Colas c2c37ab143 Update documentation referring to icon class names 2023-04-12 11:51:00 +01:00
Sage Abdullah bcbaafd116 Add docs and tests for snippets listing filters via list_filter 2023-04-03 10:24:30 +02:00
Joshua Munn 2424df3d68 Remove WAGTAILIMAGES_ALLOW_SVG setting for WAGTAILIMAGES_EXTENSIONS
PR #9860 introduced the WAGTAILIMAGES_EXTENSIONS setting, which
conflicts with the use of
WAGTAILIMAGES_ALLOW_SVG. WAGTAILIMAGES_EXTENSIONS can be used to
opt-in for SVG use instead.
2023-03-30 10:19:43 +01:00
Joshua Munn 657afde30a Add more detail to SVG security notes, update settings reference 2023-03-30 10:19:43 +01:00
Thibaud Colas d856e702e1 Update documentation on icons management, with available icons 2023-03-28 16:13:35 +01:00
Sage Abdullah f533ab219d Allow customising the number of snippets per page on the listing view 2023-03-23 14:15:42 +00:00
Sage Abdullah b713a1753e Allow admin URL customisation for snippet chooser views via SnippetViewSet 2023-03-23 13:54:59 +00:00
Sage Abdullah e6d920d435 Add docs and tests for snippets admin URL customisation 2023-03-23 13:54:49 +00:00
Daniel Kirkham 198388bf55 Add docs and tests for customising snippet icons 2023-03-22 15:15:30 +00:00
Andy Babic f680f188f3 Add useful properties to Locale
- Update get_display_name() to always return a string
- Add documentation and unit tests
2023-03-21 08:02:40 +10:00
LB Johnston 65f2eaa4d2 Documentation - Clean up minor formatting issues 2023-03-21 08:02:25 +10:00
Thibaud Colas fdc36a6989 Revert FieldRowPanel documentation removal, clarifying differences. Fix #10061 2023-03-14 22:44:11 +00:00
Sage Abdullah 909e7fedbf Update docs to reflect snippet deletion hook changes 2023-03-14 14:27:22 +00:00
Daniel Kirkham 23552f0e70 Fix two spacing typos 2023-03-11 11:03:54 +10:00
Matt Westcott a07fe20ceb Add documentation for customising StreamField validation 2023-03-01 12:07:13 +01:00
Christopher Wardle 5f6f640d0d
Documentation: Adding return statement to process_form_submission (#10143)
* Adding missing return statement to FormPage.process_form_submission in the "Custom form submission model" example to make it available to FormPage.render_landing_page, among other methods.
2023-02-24 07:52:14 +10:00
Vallabh c73b03e03c Added requested changes 2023-02-16 16:17:03 +00:00
Vallabh 407860286b Removed obsolete section of InlinePanels 2023-02-16 16:17:03 +00:00
Vallabh 996d45e0f0 Added description for parameters taken by InlinePanel 2023-02-16 16:17:03 +00:00
Matt Westcott 207493dc95 Fix broken formatting for MultiFieldPanel / FieldRowPanel permission kwarg docs 2023-02-14 20:34:35 +10:00
LB Johnston 93d3652a15 Documentation - fix whitespace issues 2023-02-11 08:29:13 +10:00
Matt Westcott a634045b6c Remove remaining versionadded directives from before 4.2 2023-02-10 13:20:34 +00:00
Matt Westcott d5f787030a Update docs for use_json_field
Indicate that this must now be set to True.
2023-02-10 13:20:34 +00:00
Matt Westcott 18a574b520 Remove old versionadded / versionchanged directives from docs 2023-02-08 14:25:09 +00:00
Matt Westcott 1a0344216c Remove fallback on BASE_URL 2023-02-08 14:25:09 +00:00
Matt Westcott 3cb4033a11 Remove deprecated edit handlers / panels 2023-02-08 14:25:09 +00:00
LB Johnston 8908c38dcd Documentation - fix up ModelAdmin items
- Link to ModelAdmin showed incorrectly as `Index app` not `ModelAdmin app`
- Many code snippets were nested, causing double nesting to appear in published docs
2023-02-06 10:26:46 +00:00
Thibaud Colas 7339f6c3d1
Update guide.wagtail.org links to use most up-to-date URL and page name, with "latest" redirect 2023-02-03 11:13:15 +00:00
4the4ryushin 32822a90ee Fix: restrict globaly documents and images to certain types (#9860)
Fixes #1285
2023-01-30 14:44:07 +00:00
LB Johnston 9e016c17b8 Documentation - whitespace formatting fixes
- Includes small fix for #9969 missing space
2023-01-28 06:59:01 +10:00
4the4ryushin 48d3b2938c fix typo 2023-01-25 13:28:07 +00:00
Sage Abdullah ad3ef5875d
Update docs and changelog to reflect changes for #9817 2023-01-19 14:52:34 +00:00
Sage Abdullah 18c140e8be
Add docs for `WorkflowMixin` and enabling workflows for snippets 2023-01-19 14:07:51 +00:00
Sage Abdullah e1c6ae2d2b
Rename `Task.page_locked_for_user` to `Task.locked_for_user` 2023-01-19 14:06:04 +00:00
Sage Abdullah d8f9d9869a
Rename `page_revision` to `revision` in `TaskState` 2023-01-19 14:06:03 +00:00
Matt Westcott 515e76ab7b Add reference docs for MultipleChooserPanel 2023-01-18 14:31:08 +00:00
Matt Westcott c5513d098a Implement mechanism to pass the 'multiple' URL parameter (and any other specified ones) on links / form actions within generic chooser modal 2023-01-18 14:31:08 +00:00
Matt Westcott 3872de44d7 Add chooser view endpoints for returning multiple results
Extend the existing 'chosen' view so that it returns a single-item list when the URL parameter `multiple` is passed, and add a 'chosen_multiple' view that accepts multiple `id` URL parameters and returns the corresponding results as a list.
2023-01-18 14:31:08 +00:00
Matt Westcott c6de0ec067 Fix remaining imports deprecated in Wagtail 3.0 2023-01-11 13:35:39 +00:00
Jhonatan Lopes 7a6feb188f Link django docs to stable version 2023-01-11 20:18:04 +10:00
LB Johnston edb86a7e8f Documentation - Fix missing links / images
Most of these are no longer applicable due to the introduction of Wagtail guide, where possible the new guide links are used now
- Re-add missing docs image for extending Draftail
- There is no Guide page (yet) for Inserting videos or images so those links have been removed
- Fix some additional reference issues where the page name and reference were causing issues
2023-01-05 12:08:27 +00:00
Jake Howard 55ea8f8532 Document the policy needed to create invalidations in CloudFront 2023-01-05 12:02:04 +00:00
Matt Westcott 1da5b97d51 Add release notes and versioned deprecation warnings for #9824 2023-01-04 18:17:35 +00:00
Jake Howard 04676cbe2b Add `fullpageurl` to jinja2 environment 2023-01-04 16:13:56 +00:00
Daniel Kirkham 2204dd05cf Fix indentation of Telepath Adapter example (#9836) 2023-01-03 10:21:13 +00:00
dr-rompecabezas b327d536e4 Fix typo in project_template.md (#9835) 2023-01-03 10:17:03 +00:00
Sage Abdullah 8dcc292d26
Add docs for `LockableMixin` and locking snippets 2022-12-14 11:46:57 +00:00
Sage Abdullah 1a09e2d70e
Rename `WAGTAILADMIN_GLOBAL_PAGE_EDIT_LOCK` to `WAGTAILADMIN_GLOBAL_EDIT_LOCK` 2022-12-14 11:46:57 +00:00
Sage Abdullah 1952ecbb63
Add the ability to lock snippets that extend LockableMixin 2022-12-14 11:10:14 +00:00
LB Johnston da90061ca8 Docs - formatting - clean up whitespace 2022-12-11 18:43:50 +10:00
Joshua Munn e84cdc4e2c Add wagtail-streamfield-migration-toolkit docs
- Move RichText -> StreamField migration guide into
  advanced/streamfield_migrations.md
2022-12-09 16:40:07 +00:00
LB Johnston 682ed3b21f Clean up unintentional whitespace in documentation 2022-11-20 23:21:56 +10:00
Coen van der Kamp 26f5a4fcb1 Move custom image filter to extendig Wagtail section 2022-11-20 08:03:33 +10:00
Temidayo b0988d3e2a
Improving the StreamField documentation with class inheritance information (#9451) 2022-11-18 15:09:43 +00:00
4the4ryushin 35a2f2cb7e Add purge_embeds management command
- Fixes #1267
- Caching OEmbed markup prevents markup changes for existing embeds so allow an easy way to clear these if needed
2022-11-11 08:00:50 +10:00
Doug Harris 2af1871271
Fix spelling `middlware` -> `middleware` (#9633)
* Fix spelling `middlware` -> `middleware`
2022-11-09 07:22:51 +10:00
Omer Ali 748c082e01 Docs / release note for #9602 2022-11-08 16:16:17 +00:00
LB Johnston 1fe9581548 Add documentation for register_user_listing_buttons hook
- Has existed since Wagtail ~1.6 but never documented
2022-11-07 06:59:24 +10:00
Oliver Parker 19fd2ceb98 Add ability to check permission on parent `PanelGroup` class
- Used by TabbedInterface, ObjectList, FieldRowPanel, MultiFieldPanel
2022-10-18 09:53:13 +10:00
Jake Howard 55f42d29c8 Mention using the `image_url` tag for increased performance on image URLs 2022-10-18 08:16:02 +10:00
Thibaud Colas 61b8336978 Release notes for #9344 2022-10-17 17:39:37 +01:00
Sage Abdullah 0a0e07abc0 Add help menu with dismissible badges
By default, the menu contains a link to a blog post
showcasing features in Wagtail 4.1 and a link to the editor guide.

We need to update the links and labels manually in the next release.
2022-10-17 17:39:37 +01:00
Sage Abdullah 4e5f4ca4ec Add tests and docs for WhatsNewInWagtailVersionPanel 2022-10-17 17:39:37 +01:00
Oliver Parker 6341d90f56 Support "--verbosity 0" on update_index command
- Ensure that the `update_index` command can run without console output if called with `--verbosity 0`
- rebase of #4401
2022-10-17 08:15:14 +10:00
LB (Ben Johnston) 18371e2113
Documentation - adopt consistent `sh` console code snippets (#9321) 2022-10-13 07:25:19 +01:00
LB Johnston 6fa4f8faca Documentation - misc formatting clean up items 2022-10-13 05:46:26 +10:00
LB Johnston 2e8709e0d6 Documentation - update dead/redirected links 2022-10-11 20:44:08 +10:00
Matt Westcott 4c7e1ea1ce Add release note for #9279 and documentation for rebuild_references_index 2022-10-05 19:38:14 +01:00
Karl Hobley b714a30bff Remove WAGTAIL_USAGE_COUNT_ENABLED setting 2022-10-05 19:38:14 +01:00
LB Johnston 466a911e54 update documentation examples got user hooks 2022-10-05 21:43:07 +10:00
Sage Abdullah 57beeb7154 Improve docs on scheduled publishing mechanism for clarity
Explicitly state that clicking Publish is required for the schedule to take effect.

Also document the edge cases for scheduled publishing when a page is scheduled to be unpublished
2022-09-30 16:13:19 +01:00
Sage Abdullah 48761ef5a9 Update docs for renaming publish_scheduled_pages command to publish_scheduled 2022-09-29 10:28:36 +01:00
Matt Westcott 528801f1a0
Ensure all panels output their own help_text (#9240)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-09-28 10:49:08 +01:00
Sage Abdullah 0a0bd30fad Allow customising snippet listing columns with list_display 2022-09-28 10:39:48 +01:00
Sage Abdullah a7249a851f Document SnippetViewSet and how to customise it 2022-09-27 10:18:18 +01:00
Thibaud Colas e8d67f778c Add alternative text for all documentation screenshots 2022-09-12 21:57:43 +10:00
LB (Ben Johnston) d2b9442e56
Documentation - clarify that preview_modes=[] will disable preview (#9157) 2022-09-07 20:32:23 +01:00
Josh 27fbb9b5a0 Fix typo in `ModelAdmin` Primer docs 2022-09-06 23:50:53 +10:00
Mehrdad Moradizadeh a5794c50e7 Add docs & changelog for form builder FormMixin & EmailFormMixin 2022-08-31 23:12:27 +10:00
LB Johnston 9cf6d9b7e3 clean up spelling of multi-site 2022-08-25 22:06:31 +10:00
Mehrdad Moradizadeh 180d43a200 Fix Page queryset.not_public returning all pages when no page restrictions exist. (#9067)
Fixes #8952
2022-08-24 17:57:22 +01:00
Sage Abdullah d71a7ccdd4 Add links to topic guide from mixin reference docs 2022-08-21 07:18:27 +10: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 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
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
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
Thibaud Colas ca7f23d176
Update InlinePanel and StreamField styles for new designs (#8983) 2022-08-12 13:17:40 +01:00
Matt Westcott 61ed6caa57 Add upgrade consideration note for change to BaseSetting 2022-08-10 19:56:57 +01:00
Matt Westcott f9fe6d0ca8 Documentation for generating chooser blocks via ChooserViewSet 2022-08-10 14:53:41 +10:00
Matt Westcott 161dd69c8a Implement generating a StreamField ChooserBlock from ChooserViewSet 2022-08-10 14:53:41 +10:00
tijani 61f6aeeb1a Add path & re_path pattern types for RoutablePageMixin
* Modified route decorator so it adds new route to view depending on pattern type; default to path
* Made a separate decorator
* Renamed route to path and updated RoutablePage models
* Added a check to warn user when using regex with path decorator
* Made @route alias of @re_path, added tests for @re_path
* resolves #7031
2022-08-08 20:09:38 +10:00
Akash-Kumar-Sen 827bcf3dbf Documentation - improve organisation of settings reference #8950
- fixes #8863
2022-08-06 21:20:22 +10:00
Thibaud Colas eac5e0bc2c Finish re-implementing form styles based on design feedback & code review
Co-authored-by: LB Johnston <mail@lb.ee>
2022-08-05 10:36:52 +02:00
Thibaud Colas 3d96e7fbe7 Implement collapsible and linkable panels
Co-authored-by: LB Johnston <mail@lb.ee>
2022-08-05 10:36:52 +02:00
Thibaud Colas af9b16e93d Re-implement base form field styles based on new page editor designs
Co-authored-by: LB Johnston <mail@lb.ee>
2022-08-05 10:36:52 +02:00
Matt Westcott 5521e3b59f Update panel templates for new designs (EditHandler rewrite)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-08-05 10:36:52 +02:00
Matt Westcott 02d836fe3e Make per_page configurable on viewsets 2022-08-05 08:34:14 +10:00
Matt Westcott 9667088e98 Move setting metadata / reindexing into form.save() 2022-08-02 18:53:56 +02:00
PaarthAgarwal 887a259723 added translate button to header actions dropdown, removed all the instances of is_parent
- Fixed failing tests, added check for simple_translations enabled
- resolves #8866
2022-07-26 22:36:35 +10:00
LB Johnston 1849122e5f documentation - update reference/contrib content to markdown 2022-07-23 10:42:06 +10:00
LB Johnston 4169d959fc documentation - rename reference/contrib files to .md 2022-07-23 10:42:06 +10:00
LB (Ben Johnston) aa55457c82
Convert reference pages documentation section to Markdown (#8881)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-07-20 16:49:25 +01:00
Matt Westcott 8f34e47b68 Note that paragraph / line breaks are not counted toward the limit 2022-07-20 13:59:03 +01:00
Matt Westcott 3fa5eb125c Implement max_length validation on RichTextBlock 2022-07-20 13:59:03 +01:00
LB Johnston c8d1a6b00a documentation - fix a few internal references 2022-07-20 17:30:08 +10:00
LB Johnston 0c9d72669c documentation - fix table of contents issue for pages reference 2022-07-20 17:11:23 +10:00
Dolidodzik b131b4813e replace latin abbreviations with english phrases & updated docs guidelines
- added sub-section to language part of general_guidelines.md
- fixes #8860
2022-07-20 16:11:38 +10:00
Paarth Agarwal 35b5ed350a
Adopt slim header in page listing views (#8792)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-07-18 18:28:51 +01:00
Matt Westcott d07ff422d8 Documentation and release note for #8703 2022-07-18 15:53:32 +01:00
vupham04 53e2bdbd0d Add option to set name to MenuItems generated by modeladmin (#8553)
Co-authored-by: Alexander Rogovskyy <A.rogovskyy@intershop.de>
2022-07-18 14:44:58 +01:00
Karl Hobley ed239157fd
Release note for #8327 (#8825)
* Delete unused settings.rst

* Release note for #8327

* Use single backticks in changelog/release notes
2022-07-18 13:01:29 +01:00
sag᠎e 5ee5acb7ce
Introduce a new auto-updating preview panel inside the page editor (#8671)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-07-14 13:59:05 +01:00
Kyle d967eccef2
Add generic settings to compliment site-specific settings (#8327) 2022-07-06 11:01:02 +01:00
Sandeep M A bc0f561240 documentation - migrate reference/pages/theory + index to markdown 2022-07-05 22:05:20 +10:00
LB Johnston 77a8f76c97 documentation - add cross-reference to field panel permissions
- permissions page had no reference to the newly introduced permission kwarg on FieldPanel
- fix minor typo
2022-07-05 20:45:13 +10:00
Matt Westcott 30054eda39 Add a 'create' view with a GET request handler 2022-07-04 13:48:35 +01:00
Matt Westcott 4dd3483617 Add a (non-functional) 'create' form to generic chooser modal 2022-07-04 13:48:35 +01:00
LB Johnston cda437804e fix up markdown docs conversion issues
- introduced in #8759 & #8569
2022-06-30 16:36:37 +10:00
SilvestriStefano f535a0cc43 Documentation - migrate reference/** files to markdown content
- relates to #8383
2022-06-30 09:57:26 +10:00
LB Johnston 0afe2f9c89 Documentation - rename docs/reference/**
- rename all files from rst to md so git history is preserved
2022-06-30 09:57:26 +10:00
LB Johnston 86cb09a534 Documentation - fix streamfield reference issue
- myst was building a doc link `streamfield` and also had a ref link `streamfield` which was causing conflicts
2022-06-30 09:57:26 +10:00
Josh Michael Karamuth 3374ccee5e Make password reset form customisable
- Use a setting called WAGTAILADMIN_USER_PASSWORD_RESET_FORM to allow
users to specify a custom form for use in PasswordResetView

- Add an extra_fields property so that fields other than the
mandatory email field can be easily rendered in the template.

- Add extra blocks to the default template to allow users to
easily add their own stuff.

- Render extra fields in the template like we're doing in the
login template.
2022-06-29 14:40:24 +10:00
LB Johnston e140c41a89 documentation - markdown formatting
- apply general fixes to existing markdown documentation
- various cases of rst syntax still used
- update some links to be the new format
- clean up line breaks (prettier)
2022-06-25 22:44:42 +10:00
LB Johnston c76579fc1e migrate docs contrib redirects & searchpromotions to md
- relates to #8383
2022-06-24 22:01:53 +10:00
LB Johnston 58095cde30 documentation minor fixes 2022-06-23 08:12:07 +10:00
Andy Babic 9ac3877980
Use iterator() wherever PageQueryset result caching is not needed (#8722) 2022-06-22 11:03:17 +01:00
Sage Abdullah dba42161e7 Move revision ForeignKey from PageLogEntry to BaseLogEntry 2022-06-22 09:31:25 +01:00
Sævar Öfjörð Magnússon 9dd4d6c6c4
Update documentation for the serve method override so that it does not mention a specific demo site. (#8714) 2022-06-21 09:13:58 +01:00
Oliver Parker 97d0d14cd8
Add add_to_admin_menu option for modeladmin (#8634) 2022-06-20 14:10:18 +01:00
Noble Mittal 0be024e024 documentation - migrate docs/extending/ to md 2022-06-20 16:36:25 +10:00
Matt Westcott 372965ef6a Put headers in markdown rather than rst 2022-06-12 15:47:24 +10:00
Matt Westcott 865df1153b Documentation for ChooserViewSet 2022-06-12 15:47:24 +10:00
Matt Westcott b00d19b3a0 Documentation for ModelViewSet 2022-06-12 15:47:24 +10:00
Matt Westcott b4d3cf1c30 Docs for base ViewSet class 2022-06-12 15:47:24 +10:00
BenedictFaw 952e57b916 Migrate docs for StreamField from md to rst
- relates to #8383
2022-06-09 20:21:50 +10:00
Matt Westcott a3b1cb6c28 Add a page_type_display_name shortcut property 2022-06-08 17:35:40 +01:00
LB Johnston fd5218220e form builder - allow clean_name generation to be overridden
- adds a new class method to AbstractFormField `get_field_clean_name`
- resolves #6903
2022-06-02 08:07:24 +10:00
Dan Swain b53f12d394 Include missing import of FieldPanel 2022-05-28 06:40:25 +10:00
Tibor Leupold 4f5d688021 Add ability for upgrade notification to show the relevant release to the user
This now implements the logic to link to the next minor's release notes
when such a version difference is computed. If a patch release
difference is computed, then those release notes are linked.

The utils.tests.js seemed a bit unexpected location, because there is no
`utils.js` module. Now the module defining the tests and the one
defining the functionality are named similarly, as is common in the rest
of the code base.

- resolves #7336
- resolves #7405
- resolves #3938
- fixes #8537

Fix issue where upgrade notification was not using translated content.
2022-05-26 19:57:46 +10:00
sag᠎e f4d5207fbd
Use `GenericForeignKey` and `GenericRelation` for `Revision` (#8571) 2022-05-26 00:08:30 +01:00
thoang43 2fbac52532 Documentation - Convert rst to md for ModelAdmin section
- Co-authored-by: Vu Pham
- relates to #8383
2022-05-20 08:32:21 +10:00
sag᠎e 52e5abfe62
Replace `PageRevision` with generic `Revision` model (#8441) 2022-05-17 11:46:30 +01:00
Paarth Agarwal a98f047950 removed trailing slash 2022-05-14 15:50:10 +10:00
Fabien Le Frapper aad51b2bb2 Update docs/reference/contrib/frontendcache.rst
Co-authored-by: Jake Howard <RealOrangeOne@users.noreply.github.com>
2022-05-13 08:15:35 +10:00
Fabien Le Frapper aff9b9a623 fix linting issues 2022-05-13 08:15:35 +10:00
Fabien Le Frapper 44456ff4dd Fix typo that broke a link 2022-05-13 08:15:35 +10:00
Fabien Le Frapper b54e9cbc62 Add instructions about where to find cloudflare zone id 2022-05-13 08:15:35 +10:00
LB Johnston d9981e0ec7 fix up spelling in documentation & docstrings (should be en-GB not en-US)
- customize -> customise
- color -> colour
- customizing -> customising
- organize -> organise
2022-05-13 08:13:06 +10:00
Matt Westcott 37784643e9 API docs for Panel 2022-04-22 17:25:30 +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
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
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
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
Jake Howard 59f901fb82 Use `JSONField` to store form submissions 2022-04-13 23:40:56 +10:00
Thibaud Colas 4dc5f3c595 Remove legacy sidebar, refactoring slim sidebar implementation 2022-04-08 11:51:09 -04:00
Hitansh Shah 0b8a8c2024 Added image management command to purge and regenerate renditions
- resolves #8107
2022-04-07 23:57:44 +10:00
eevel 1c7c5cfc0b Allow specifying an alternative storage backend for image renditions
- add setting `WAGTAILIMAGES_RENDITION_STORAGE`
- add AbstractRendition file storage to use new setting
- resolves #3183
2022-04-07 23:33:46 +10:00
LB Johnston 5f4942f9ad documentation - fix broken docs references
- remove 2.16 reference to setting that no longer exists
2022-04-07 12:52:03 +01:00
Sandil Ranasinghe cb7fc4cb14 Rename BASE_URL to WAGTAILADMIN_BASE_URL & add docs
- add documentation for WAGTAILADMIN_BASE_URL
- ensure that WAGTAILADMIN_BASE_URL is used via a util so that it can fallback from request
- resolves #3248
- remove settings URL from pagination template - not required for query string URLs
2022-04-06 19:43:46 +10:00
Abdul 9007bda686 documentation - add admin tag manager doc
- add documentation that describes how to use `ModelAdmin` to manage tags
- resolves #1220
2022-04-06 07:21:34 +10:00
Matt Westcott 97e781e31c Renumber Wagtail 2.17 to 3.0
As per discussion on https://github.com/wagtail/wagtail/discussions/7732, the changes in the upcoming release (sidebar redesign, removal of hallo.js, module reorganisation) warrant a version bump to 3.0 if we're following semantic versioning.
2022-03-31 06:38:27 +10:00
Sage Abdullah dcae64c255 Allow `StreamField` to use `JSONField` internal type via `use_json_field` kwarg
Add system check for use_json_field in StreamField

Change system check level to Warning

Add use_json_field argument to StreamField in test models

Use RemovedInWagtail219Warning instead of a system check

Handle unpacked values in to_python when use_json_field is True

Duplicate models and tests for JSONField-based StreamField

Add basic tests for JSONField-based StreamField

Add json_field property in StreamField to unify JSONField usage

Add docs

Don't use destructuring for kwargs in deconstruct

Add versionchanged note to StreamField reference
2022-03-29 18:18:08 +01:00
Matt Westcott 6bb26c774e Move template paths from edit_handlers to panels 2022-03-25 10:44:25 -04:00
Matt Westcott c7774ba0be Move wagtail.contrib.forms.edit_handlers to wagtail.contrib.forms.panels 2022-03-25 10:44:25 -04:00
Matt Westcott b189ab8382 Move wagtail.admin.edit_handlers to wagtail.admin.panels 2022-03-25 10:44:25 -04:00
Karl Hobley 75cc7da38a Move wagtail.core to wagtail 2022-03-17 17:19:59 +00:00
Matt Westcott dd37901428 Add documentation for the permission kwarg on FieldPanel 2022-03-16 11:47:51 +00:00
Serafeim Papastefanos 93da5bc793 Documentation - modelAdmin - add form clean example 2022-03-16 21:16:28 +10:00