Wykres commitów

11473 Commity (613c4328a26e6aa8a1d93f39da7dd5ed523d6e76)

Autor SHA1 Wiadomość Data
Matt Westcott 613c4328a2
Add Godswill Melford to contributors 2021-06-16 10:19:49 +01:00
Godswill Melford 212def6aa2 docs: update custom_account_settings.rst
Modify CustomSettingsForm import in hooks.py in user model usage
2021-06-16 10:19:03 +01:00
Matt Westcott 7e41ee8706 Add explanatory comments for submodules 2021-06-15 12:46:49 +01:00
Matt Westcott c04fe47dd0 Move logging models to wagtail.core.models.audit_log 2021-06-15 12:46:49 +01:00
Matt Westcott 99ae907c97 Add get_instance_title method to BaseLogEntryManager
This makes BaseLogEntryManager fully independent of the Page model
2021-06-15 12:46:49 +01:00
Matt Westcott ee254f72e0 Move Collection models to wagtail.core.models.collections 2021-06-15 12:46:49 +01:00
Matt Westcott 5e66087de7 Move BaseViewRestriction model to wagtail.core.models.view_restrictions 2021-06-15 12:46:49 +01:00
Matt Westcott 6648a69049 Move logging code from BaseViewRestriction to PageViewRestriction
View restrictions other than PageViewRestriction should not generate PageLogEntry records. (Luckily, the old code avoided doing this because PageViewRestriction.save and .delete would have been the only things that ever passed specific_instance to super.)
2021-06-15 12:46:49 +01:00
Matt Westcott 267f69a1d1 Move Site model to wagtail.core.models.sites 2021-06-15 12:46:49 +01:00
Matt Westcott 96b4df451c Move wagtail.core.models to a subfolder 2021-06-15 12:46:49 +01:00
Matt Westcott 4749c89cc8
Reinstate BaseLogEntry.comment property (#7253)
Fixes #7163
2021-06-14 17:39:46 +01:00
Matt Westcott 8422150485 Require python-dateutil>=2.7 (otherwise freezegun fails with module 'dateutil.tz' has no attribute 'UTC') 2021-06-14 16:17:04 +01:00
Matt Westcott b1a3a292f7
Refactor images index into CBV and eliminate is_ajax (#7251)
* Convert images index to a class-based view

* Use TemplateView for images index

* Add a separate URL endpoint for image search results include

Eliminates use of request.is_ajax, along with some unnecessary collection querying
2021-06-14 13:54:28 +01:00
Thibaud Colas 14b0e807d6
Update guidance on alt text for images in rich text
This shortcoming was fixed and released in Wagtail 2.13
2021-06-11 14:11:55 +01:00
Chris Pollard c9a55d8b1b Fix tagged page page copy regression in _copy_m2m_relations (#7224)
Fixes #7230
2021-06-11 14:08:55 +01:00
Karl Hobley 967626f9a2 Allow footer text to be set on sub menus 2021-06-11 13:47:12 +01:00
Karl Hobley e047266153 Convert Icon to TypeScript 2021-06-11 09:32:18 +01:00
Karl Hobley 36966a5819 Merge Sidebar button implementation into shared implementation 2021-06-11 09:32:18 +01:00
Karl Hobley 5dabd762fa Use React event listeners for peeking the sidebar 2021-06-10 14:18:19 +01:00
Karl Hobley 8a79f27738 Add story containing Arabic translations 2021-06-10 14:18:19 +01:00
Karl Hobley e463bedff1 Prevent double initialisation if Telepath is imported twice 2021-06-10 14:18:19 +01:00
Karl Hobley 33af79a1c4 Initial work on new sidebar react/css 2021-06-10 14:18:19 +01:00
Karl Hobley 15626b2789 Add angle icons 2021-06-10 14:18:19 +01:00
Matt Westcott b8a86ac15d
Eliminate request.is_ajax from snippet listing view (#7209)
* Convert snippet list view to a class-based view

* Convert ListView to use TemplateView

* Add separate URL endpoint for listing results include

This eliminates the use of request.is_ajax, which will be removed in Django 4.0.

* Use a results_only parameter on ListView rather than distinct subclasses
2021-06-08 19:28:51 +01:00
Matt Westcott 0ef7a4ba05
Fix syntax error in StreamBlock example (#7238)
Fixes #7237
2021-06-04 19:04:38 +01:00
Matt Westcott 4abb53275b Fill in release date for 2.13.1 2021-06-01 15:51:13 +01:00
Matt Westcott 9813639b21 Fetch new translations from Transifex 2021-06-01 15:11:08 +01:00
Matt Westcott 9f4b9f36c9 Release note for #7223 in 2.13.1 2021-06-01 14:05:04 +01:00
Matt Westcott 09fb013a59
Fix broken link in comment notification HTML email (#7223)
Thanks to @auslaner for reporting.
2021-06-01 13:54:51 +01:00
Matt Westcott ee8291d238 Prefetch wagtail_userprofile when retrieving comment authors
avatar_url will access this, so this prevents an N+1 query.
2021-06-01 10:57:24 +01:00
Dan Braghis bca79b81f7
Change CodeQL analysis on cron only (#7229)
now that they mark unrelated changes as failures on PR...
2021-06-01 10:53:47 +01:00
Alex fd4ed6aaeb Fix order
This change fixes promotion pages order.
2021-05-30 14:47:33 +02:00
Matt Westcott 7c6db207a8 Release note for #7216 in 2.13.1 2021-05-28 16:48:52 +01:00
Jacob Topp-Mugglestone afff4d451a
Fix/comments with UUID user (#7216)
* Add UUID primary key to EmailUser

* Convert pks to strings when being used as dictionary keys for commenting, to prevent custom primary key fields on user model causing serialization to fail
2021-05-28 16:46:45 +01:00
Matt Westcott a56143b90b Add release note for #7212 in 2.13.1 2021-05-28 16:39:24 +01:00
Karl Hobley 45dce6ac1e
Hide comment notifications checkbox when commenting is disabled (#7212)
Fixes #7203
2021-05-28 16:24:46 +01:00
Matt Westcott e68d20f33e
Avoid n+1 query on recent edits dashboard panel (#7220)
The use of Page.objects.in_bulk to retrieve all page data for the panel in a single query was being thwarted by our use of revision.page.id when reading them back (which ends up loading the whole page object just to look at the id...)
2021-05-26 19:24:27 +01:00
Matt Westcott de9588590b Allow workflows to be disabled (#7218)
Introduce a WAGTAIL_WORKFLOW_ENABLED setting; when false, the workflow report and settings menus are hidden, permissions are not registered, moderation-related dashboard panels on the homepage are skipped, workflow actions on add/edit page are hidden, and model methods such as page.current_workflow_state return None / False immediately without any db queries.
2021-05-26 19:23:28 +01:00
Matt Westcott 4dc68550bc
Reorganise snippet admin URLs to avoid ambiguous paths (#7208)
* Reorganise snippet admin URLs to avoid ambiguous paths

Snippet admin views allow for arbitrary strings as primary keys, and the current URL patterns don't adequately namespace these from reserved words like 'add' - for example, a snippet with the primary key 'add' would have an edit URL that collides with the add view at `/admin/snippets/foo/bar/add/`.

This is unlikely to come up in practice, but it does mean that our urlconf is more sensitive to ordering than it needs to be. Rearrange so that the verb (add, edit, delete) consistently comes before the pk, and add redirects to handle the legacy URLs.

* Release notes for #7208

Co-authored-by: Storm Heg <storm@stormheg.co>
2021-05-25 17:22:07 +02:00
Jaap Roes 8487c67ebb
Simplify oembed dict missing key fallback (#6922) 2021-05-24 17:20:13 +01:00
Bojan Mihelac 0dfc342d66 Small fix in doc for routablepage 2021-05-19 15:15:49 +01:00
Karl Hobley acf467337f New sidebar: Logout => Log out 2021-05-18 09:01:34 +01:00
Karl Hobley 13b8b1b7b8 Update JavaScript guidelines to say two space indent 2021-05-17 15:26:10 +01:00
dependabot[bot] 6ec5484bce Bump hosted-git-info from 2.8.8 to 2.8.9
Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](https://github.com/npm/hosted-git-info/compare/v2.8.8...v2.8.9)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-17 14:40:33 +01:00
dependabot[bot] 48fa41f560 Bump lodash from 4.17.20 to 4.17.21
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.20...4.17.21)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-17 14:40:10 +01:00
Karl Hobley 4daeed1bf5 Add locale filter into snippet chooser (#6699) 2021-05-17 13:24:03 +01:00
Matt Westcott 08be45dbd9 Release note for #7180 2021-05-17 12:32:19 +01:00
Matt Westcott a982ebe9f2 Documentation for image rendition properties including full_url 2021-05-17 12:32:19 +01:00
Shreyash Srivastava b718746715 Added full_url property on image renditions. (#7180)
Fixes #6803
2021-05-17 12:32:18 +01:00
Karl Hobley a5e89db20d Initialise new sidebar in template 2021-05-17 11:48:29 +01:00