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

10493 Commits

Author SHA1 Message Date
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
Karl Hobley
e78db08d24 Localize rich text links 2020-09-15 10:17:49 +01:00
Karl Hobley
878f8a7fc6 Render userbar with user's preferred admin language 2020-09-15 10:17:49 +01:00
Karl Hobley
b364aac7d2 Implement .localized property 2020-09-15 10:17:48 +01:00
Karl Hobley
f27a2b4010 Implemented translation_of queryset method 2020-09-15 10:17:31 +01:00
Karl Hobley
189b31dd18 Set locale on create view 2020-09-15 10:17:30 +01:00
Karl Hobley
a2d230087a Implement locale-aware routing 2020-09-15 10:17:30 +01:00
Karl Hobley
db92a94506 Initial internationalisation models 2020-09-15 10:16:19 +01:00
Karl Hobley
519c0c332d
Simplify Page.copy() (#6277)
* Use Django modelcluster's copy_all_child_relations method

* page.specific.__class__ => page.specific_class

* Use child_object_map as returned by modelcluster for revision rewriting

* Use modelcluster to commit child relations

* Use a callback instead of a method for _save_copy_instance

* Make CopyMixin work on non-MTI models

* Make gathering exclude_fields the job of the callee

._copy() no longer depends on any custom attributes in the base class!

* Converted CopyMixin into some utility methods (and renamed some stuff)

* Don't commit the new page in _copy

* Refactor _copy_m2m_relations to be more standalone

* Merge _make_copy into _copy

Not really useful outside _copy

* Give unused variable a name

* Version-bump django-modelcluster to 5.1

* Address review feedback

Co-authored-by: Matt Westcott <matt@west.co.tt>
2020-09-14 20:50:44 +01:00
Andy Babic
5e6a674686 Minor release notes amends 2020-09-04 11:04:38 +01:00
Andy Babic
1c67aa6a48 Release notes for Tests for #6141 2020-09-03 20:42:39 +01:00
Robert Rollins
2ceefcf7bc Tests for #6141 2020-09-03 20:25:37 +01:00
Robert Rollins
e404f83cd1 Implement nested collections 2020-09-03 20:25:37 +01:00
Andy Babic
0d8301e28f Release notes for #6190 2020-09-03 20:11:22 +01:00
Matt Westcott
8f8f2e12b7 Extend treebeard's fix_tree method with the ability to non-destructively fix path issues and add a --full option to apply path fixes 2020-09-03 20:06:55 +01:00
Andy Babic
10d68fdd09 Release notes for #6362 2020-09-02 20:42:56 +01:00
Jérôme Lebleu
80cc70b7ce Instantiate edit_handler and form once in ModelAdmin views
Make use of the same `edit_handler` and `form` objects during the whole
creation and edit views process. `edit_handler` is initialized and
bounded to the instance during `setup()` which fixes #5005. This also
ensures that the form is cleaned only once.
2020-09-02 20:30:22 +01:00