Matt Westcott
499193d05c
Pass snippet chooser URL via data attribute instead of chooserUrls
2020-09-30 22:05:45 +01:00
Matt Westcott
dc110b5432
Remove note about MSSQL being known to work
...
As per https://github.com/wagtail/wagtail/issues/6393
2020-09-30 16:29:08 +01:00
Matt Westcott
008b6c12c4
Update BaseLogEntry docs to reference user_display_name. Fixes #6418
2020-09-30 15:43:27 +01:00
Karl Hobley
2d9f81f3bb
Add a comment to describe why _filtered_by_child_of exists
2020-09-30 08:23:27 +01:00
thenewguy
a88866c3c6
Force string url before passing to urlparse ( #6341 )
2020-09-30 08:10:50 +01:00
Karl Hobley
2dfa3840a7
Copy related objects by ID instead of retrieving instances
2020-09-29 16:56:04 +01:00
Karl Hobley
4163be0d17
Retrieve page children with specific queryset
2020-09-29 16:56:04 +01:00
Karl Hobley
d2ef2939b1
Pre-calculate new MP_Node attributes when copying recursively
...
When copying recursively, we know that there are no existing pages
sitting underneath the pages we create, so we can bypass the checks that
Treebeard does when calculating a new path.
2020-09-29 16:56:04 +01:00
Karl Hobley
283fad5da4
Don't keep cleaning newly copied pages
2020-09-29 16:56:04 +01:00
Karl Hobley
a83d947d09
Check is_new before updating descendant paths or checking if site root
...
A page can't have descendants or be a site root if it's only just been
created.
2020-09-29 16:56:04 +01:00
Karl Hobley
8605717b62
Revert "Force string url before passing to urlparse ( #6341 )"
...
This reverts commit 8a4b04209e
.
This reverts commit c005e6fd29
.
2020-09-29 16:52:29 +01:00
Karl Hobley
c005e6fd29
Changelog / release note for #6341
2020-09-29 13:54:02 +01:00
thenewguy
8a4b04209e
Force string url before passing to urlparse ( #6341 )
2020-09-29 13:51:08 +01:00
Saptak S
61e8173625
Use get_admin_display_title in PageChooserPanel
2020-09-28 17:21:12 +01:00
François Poulain
0c6815910b
Stronger check on blocks names ( #6295 )
...
Ref: https://github.com/wagtail/wagtail-react-streamfield/issues/54
2020-09-28 14:31:39 +01:00
Matt Westcott
c1da0fe56d
Inline PDF serving doesn't only apply on the edit view
2020-09-28 13:56:11 +01:00
Matt Westcott
2590fab0b6
Release note for #6410
2020-09-28 13:53:49 +01:00
Matt Westcott
aa235a40fd
Take out stopword removal, as per 62f1655a64
...
Fixes #4899
2020-09-28 13:46:33 +01:00
Matt Westcott
72593ffd86
Replace urlify with Django's version from b2bd08bb7a
...
This fixes the İstanbul issue - https://github.com/django/django/pull/12237
2020-09-28 13:46:33 +01:00
Karl Hobley
dd6139e0c2
Implement meta.translations
field in Admin API
2020-09-28 10:56:36 +01:00
Karl Hobley
3a5dc044a6
Implement meta.locale
field in API
2020-09-28 10:56:36 +01:00
Karl Hobley
908876bcd2
Implement translation_of
filter in API
2020-09-28 10:56:36 +01:00
Karl Hobley
cd44515c33
Implement locale
filter in API
2020-09-28 10:56:36 +01:00
Karl Hobley
eee9fbdaa9
Include pages from all locales in API
...
Need some extra logic here as other locales are stored in separate trees
2020-09-28 10:56:36 +01:00
Matt Westcott
8edf16e5ff
Serve PDFs inline in the browser
...
Fixes #1158
Add config options WAGTAILDOCS_CONTENT_TYPES and WAGTAILDOCS_INLINE_CONTENT_TYPES to determine the Content-Type and Content-Disposition headers returned for documents when using the Django serve view, and default to application/pdf being served inline.
2020-09-28 07:22:58 +10:00
Scott Cranfill
70bb9d934b
Support SVG icons in ModelAdmin menu items ( #6402 )
...
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2020-09-25 15:58:52 +01:00
Matt Westcott
890974320f
Fill in release date for 2.10.2
2020-09-25 11:05:22 +01:00
Matt Westcott
510e52923a
Skip content comparison in create_log_entries where revision cannot be restored ( #6407 )
...
Fixes #6368
2020-09-25 10:14:36 +01:00
Coen van der Kamp
0338cc37f7
Add icon sprite caching via local storage ( #6243 )
...
Improve Wagtail admin page load performance by caching SVG icons sprite in localstorage
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2020-09-24 20:12:32 +01:00
Matt Westcott
3300e3b851
Consistently show user's full name (where available) in reports ( #6400 )
...
Add user_display_name template filter to simplify user display code
This replaces the `{{ some_rambling_expression_evaluating_to_a_user.get_full_name|default:some_rambling_expression_evaluating_to_a_user.get_username }}` pattern used all over the place.
Display user's full name (where available) in LogEntry listings
Don't use full name if it consists of whitespace (which happens on our test user models)
release note
2020-09-24 16:16:19 +01:00
Glenn Paquette
3ab18aa901
Issue #6388 --> Changed <input type=button> to <button type=button> ( #6401 )
...
* Issue #6388 --> Changed <input type=button> to <button type=button>
* Issue #6388 --> Changed <input type=button> to <button type=button> [edited] fixed closing button tags </button>
* Issue #6388 --> Changed <input type=button> to <button type=button> [edited] corrected missing closing button tag on line 519
* Issue #6388 --> Changed <input type=button> to <button type=button> [edited] removed value='' attribute on <button> tags
* Issue #6388 --> Changed <input type=button> to <button type=button> [edited] fixed typo on line 700 - input/button tags mixed up
* Issue #6388 --> Changed <input type=button> to <button type=button> [edited] fixed typo on line 782 -- missing closing tag on <img>
2020-09-23 20:40:45 -04:00
Martin Mena
3d7f2d0905
Add missing condition for StreamBlockComparison
2020-09-23 11:26:14 -04:00
Dan Braghis
55d82d6167
Limit page-editor input changes to non-submit inputs ( #6397 )
2020-09-23 11:50:19 +01:00
Dino Perovic
1267468c4c
Check preview mode before displaying the button
2020-09-21 14:34:43 +01:00
Matt Westcott
69919d1687
Move #6369 to 2.10.2 release notes
2020-09-21 14:31:06 +01:00
Karl Hobley
208f756c12
Rewrite test to no longer register an invalid model
2020-09-21 12:55:41 +01:00
Karl Hobley
00740a4941
Set up translation for new locales app
2020-09-21 12:55:41 +01:00
Karl Hobley
7c86c4e14f
Implemented Locales UI
2020-09-21 12:55:41 +01:00
Matt Westcott
7380037269
Avoid 'ZZZZ' tree paths as placeholders on preview ( #6389 )
...
Fixes #5807 . If the page instance being previewed gets saved (no confirmation that Wagtail itself is doing this, but it could easily happen as a result of some misplaced logic in `get_context` or similar), it will block further page creations in a way that's difficult to recover from.
2020-09-17 15:42:22 +01:00
Karl Hobley
87b40bf166
Allow nested sections in tabs
...
This CSS rule was hiding all nested sections, not just the one the tabs
are using.
2020-09-17 14:32:16 +01:00
Karran Besen
0c8ad63adb
Fix admin submit inputs focus ( #6369 )
...
* Fix admin submit inputs focus
Co-authored-by: Coen van der Kamp <coen@fourdigits.nl>
2020-09-17 11:04:18 +02:00
Karl Hobley
5ccc094ea7
Fix crash when LANGUAGE_CODE is not defined in LANGUAGES
2020-09-16 16:01:48 +01:00
Matt Westcott
f2f4503f4f
Un-revert #6220
...
This reverts commit 3467e57de9
.
2020-09-16 16:01:02 +01:00
Matt Westcott
3467e57de9
Revert #6220 due to failures when LANGUAGE_CODE = 'en-us'
...
This reverts commits db92a94506
to faa0665116
inclusive.
2020-09-16 14:26:30 +01:00
Matt Westcott
faa0665116
Upgrade consideration note for get_site_root_paths
2020-09-15 10:47:25 +01:00
Karl Hobley
df2a1e0d03
Update wagtail/core/tests/test_page_permissions.py
...
Co-authored-by: Matt Westcott <matthew@torchbox.com>
2020-09-15 10:19:05 +01:00
Karl Hobley
87c4c85b0d
Change return value of Site.get_root_paths() to a list of named tuples
2020-09-15 10:19:01 +01:00
Karl Hobley
b326f1d6eb
Make frontend cache default to WAGTAIL_CONTENT_LANGUAGES
2020-09-15 10:18:05 +01:00
Karl Hobley
371fd48c6c
Add system check for TranslatableMixin's unique_together constraint
2020-09-15 10:18:04 +01:00
Karl Hobley
a88129236c
Add WAGTAIL_CONTENT_LANGUAGES setting
2020-09-15 10:18:04 +01:00