0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 11:41:20 +01:00
Commit Graph

11889 Commits

Author SHA1 Message Date
Cynthia Kiser
c41bfe43d8 Make a new permission policy for controlling management of collections 2021-10-15 00:25:59 +01:00
Cynthia Kiser
3eeb4af834 User must have delete permission to see delete button 2021-10-15 00:25:59 +01:00
Cynthia Kiser
74d98fe031 BUGFIX Delete button had disappeared for superusers 2021-10-15 00:25:59 +01:00
Cynthia Kiser
8e27133d06 Enforce group's ability to manage sections of the collection hierarchy 2021-10-15 00:25:59 +01:00
Cynthia Kiser
2c1e37eb03 Allow groups to manage sections of the collection hierarchy 2021-10-15 00:25:58 +01:00
LB Johnston
5a7ae4280d add release notes for #7605 2021-10-15 07:07:00 +10:00
Thibaud Colas
b56d27d1a1 Fix checkboxes appearing as always checked in Windows high contrast mode 2021-10-15 06:59:51 +10:00
Thibaud Colas
c46001604b Improve checkbox keyboard focus styles without changing page layout 2021-10-15 06:59:51 +10:00
Matt Westcott
e17647e466 Formally define / use COMMENTS_RELATION_NAME as a constant on wagtail.core.models
Follow-up to #7591 as per https://github.com/wagtail/wagtail/pull/7591#issuecomment-943217628
2021-10-15 06:49:58 +10:00
Matt Westcott
b57448eeef Fill in release date for 2.14.2 2021-10-14 17:14:14 +01:00
Matt Westcott
6197ada10d Fill in release date for 2.13.5 2021-10-14 17:13:44 +01:00
Matt Westcott
871da88a7f Release note for #7524 backport in 2.13.5 2021-10-14 17:02:09 +01:00
Matt Westcott
bf14954d80 Release note for #7524 in 2.14.2 2021-10-14 17:02:02 +01:00
Matt Westcott
7eab06de10 Release note for translation fixes in 2.14.2 2021-10-14 17:01:53 +01:00
Matt Westcott
b5e7af9ebc Release note for translation fixes in 2.13.5 2021-10-14 17:01:45 +01:00
Matt Westcott
20ef0dcf7f Document the COMMENTS_RELATION_NAME constant in 2.14.2 release notes 2021-10-14 17:01:33 +01:00
Matt Westcott
d3f2305601 Document the COMMENTS_RELATION_NAME constant in 2.13.5 release notes 2021-10-14 17:01:24 +01:00
Matt Westcott
740451c351 Release note for #7591 in 2.14.2 2021-10-14 17:01:05 +01:00
Matt Westcott
80d2f2bc36 Release note for #7591 in 2.13.5 2021-10-14 16:59:34 +01:00
Matt Westcott
bfa94f81af Fetch new translations from Transifex
Fixes errors identified by check-translation-strings.py script #7604
2021-10-14 15:39:54 +01:00
Fab
77913bc220 Replace unneeded length filter
I asked the question about using the `length` filter in https://github.com/wagtail/wagtail/discussions/7598 and I'm thinking it may not be needed anymore with the current version of Django that Wagtail supports.
2021-10-14 13:25:03 +01:00
Andy Chosak
5a65cb7554 Expose preview mode to page and template rendering
Currently Wagtail defines `request.is_preview` as a way for both page
rendering and template rendering to modify logic based on whether the
page is being previewed.

If a page supports multiple preview modes, though, the information about
which mode is being previewed isn't made available. So, for example,
it's not possible to customize `Page.serve` or `Page.get_context` based
on a different preview mode. Or, consider customizing
`Page.get_template` so that it uses a different page template depending
on the mode being previewed.

This commit adds `request.preview_mode` so that the mode is available
downstream of previews, both in the page rendering logic and also in the
template itself.

A minor documentation change mentions this new property.
2021-10-14 06:47:26 +10:00
Matt Westcott
ba3a527230 Release note for #7591 2021-10-13 19:10:56 +01:00
Matt Westcott
76484ac1a3 Ensure that comment data saved to revisions under the key 'comments' is restored 2021-10-13 18:50:15 +01:00
Matt Westcott
66e5e21b59 Upgrade django-modelcluster to 5.2 2021-10-13 18:50:15 +01:00
Matt Westcott
eed26307c8 Make comments relation name configurable with a setting 2021-10-13 18:50:15 +01:00
Matt Westcott
7303d7fac6 Change comments relation to wagtail_admin_comments 2021-10-13 18:50:15 +01:00
LB Johnston
196a368cdc add contributors for #7588 2021-10-13 17:54:04 +10:00
indreshp135
6e90c877ec fix issue with __prefix__ in nested inline panel
changed following:
change only first __prefix__ when multiple __prefix__ are present in
same name when orderable and blocks are nested

Co-authored-by: anirudhvs <54744932+anirudhvs@users.noreply.github.com>
Co-authored-by: CaptainIRS <36656347+CaptainIRS@users.noreply.github.com>

- fixes #7587
- fixes #5770
2021-10-13 07:37:27 +10:00
Karl Hobley
6659c286ce Remove duplicate DeprecationWarning class
(strange there was no merge conflict here)
2021-10-12 15:19:32 +01:00
Karl Hobley
e2ddd52030 Updates to docs for new database search backend
A more detailed comparison of the features supported in different
databases will come later.
2021-10-11 20:12:24 +01:00
ACMCMC
121212c6d0 Separated body and title FULLTEXT indexes 2021-10-11 20:12:24 +01:00
Karl Hobley
7a9da0c4e0 Skip ngram parser on MariaDB
Not supported yet: https://jira.mariadb.org/browse/MDEV-10267
2021-10-11 20:12:24 +01:00
ACMCMC
eaae08136f MySQL Backend 2021-10-11 20:12:24 +01:00
ACMCMC
810c7783e2 Model for the MySQL backend 2021-10-11 20:12:24 +01:00
Aldán Creo
d0f76cd8dd SQLite Search Backend 2021-10-11 20:12:24 +01:00
Aldán Creo
7ecc67e52e New PostgreSQL search backend 2021-10-11 20:12:23 +01:00
Aldán Creo
52f8b4268a Groundwork for the new search backend (#7281) 2021-10-11 20:12:23 +01:00
Jérôme Lebleu
a714de8038 Use SVG icon instead of font icon in modeladmin index view
- This uses the same classes and tags than 'wagtailadmin/shared/header.html'
- constructs the <header> element and its children and blocks to that convention
2021-10-10 13:12:51 +10:00
Fabien Le Frapper
50f55507d8 Upgrade modernizr and jquery
- https://blog.jquery.com/2021/03/02/jquery-3-6-0-released/
- https://github.com/Modernizr/Modernizr/compare/v2.6.2...v2.8.3
2021-10-10 13:01:53 +10:00
LB Johnston
443f5b3fa0 add missing release notes items
- items included in changelog but not in 2.15 release notes
2021-10-10 12:53:37 +10:00
Sakshi Uppoor
da1e4d9a99
Fix toggle switch bug in high-contrast mode (#7561)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2021-10-08 22:32:55 +01:00
LB Johnston
9c191c255f add tags to existing Django registered checks
PR: #7569

- see https://docs.djangoproject.com/en/3.2/topics/checks/#registering-and-labeling-checks
2021-10-08 11:02:30 -04:00
Jérôme Lebleu
5522992c29 Use SVG icons in StreamField buttons and headers
- Simplify rendering of .c-sf-button and its elements
- replaces the rendering of `.c-sf-button` as a flexbox by a simple
- block element - as it is enough here - and moves text related rules to the <button> element.
- Use SVG icon in StreamField's action buttons
2021-10-07 17:04:13 +10:00
Dmitrii F
932762c9f1 windows high contrast mode - multiple fixes
- fix search header field border in Windows High Contrast mode
- fix tab-nav active in Windows High Contrast mode
- add border for c-sf-button. This fix view in WHC mode.
- add justify-content - center for better view on mobile devices.
2021-10-07 15:59:14 +10:00
LB Johnston
02d6d27a9c add release notes
- autocomplete API - #4937 & #5960 & #4938
- Python 3.10 #7577
- unit tests #7578
2021-10-07 15:42:32 +10:00
Karl Hobley
160b44ed09 Documentation for autocomplete API 2021-10-07 15:26:23 +10:00
Matt Westcott
b6b3a0c4ac Add support for Python 3.10
Quote all versions in test.yml (so that 3.10 isn't interpreted as 3.1)
2021-10-07 15:20:28 +10:00
Matt Westcott
f73572e449 Capture log output from style fallback unit test
For some reason the log output generated during the test added in #7388 causes subsequent tests to be much more noisy - wrap it in self.assertLogs to silence this.

(also change logging.warn to logging.warning - the former is obsolete as per https://docs.python.org/3.10/library/logging.html#logging.warning )
2021-10-07 06:02:26 +10:00
LB Johnston
f453092d0c update hooks documentation to use mark_safe as no variables are used 2021-10-06 20:57:32 +10:00