Wykres commitów

10678 Commity (65d0cdf55f95bc6f8f85c8fff50b48102dd2bbcc)

Autor SHA1 Wiadomość Data
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
Vince Salvino 7ec4b516fa Specify required python versions (#6366) 2020-09-02 17:52:00 +01:00
Matt Westcott 461abec5b5 Release note for #6370 2020-09-02 10:36:27 +01:00
Andy Babic 0bfc7e127c Add custom route tests to cover usage of the new render() method 2020-09-01 22:35:56 +01:00
Andy Babic 8fd5d66756 Add RoutablePage.render() helper method and update documentation 2020-09-01 22:24:08 +01:00
Matt Westcott 4e1e4f03c0 add missing 2.10.2 release notes file 2020-08-28 10:37:10 +01:00
Karran Besen d9449150b5 Fix remove icon class from wagtail userbar icon 2020-08-28 10:35:51 +01:00
Matt Westcott 63702d368b Add release notes for 2.10.2 2020-08-28 10:35:37 +01:00
Matt Westcott 4f42e61a2c Fix incorrect reference to MIDDLEWARES 2020-08-27 16:07:22 +01:00
Matt Westcott 925d64730a Add examples of replacing request.site 2020-08-27 16:05:06 +01:00
Kalob Taulien 3aa6643374
Update responsive embeds docs
Merge pull request #6361 from gasman/doc/responsive-embeds
2020-08-27 08:07:51 -06:00
Matt Westcott e50056c3b0 Update responsive embeds docs
The current text still mentions the rich-text class (which is now formally deprecated) alongside responsive-object (which is not deprecated, but off by default). Split up the CSS snippet to make it clear that these are two distinct cases, and eliminate use of rich-text.
2020-08-27 12:25:23 +01:00
Matt Westcott c3475c8fdf Add USE_TZ=False test run to Travis 2020-08-26 17:02:36 +01:00
Matt Westcott 900fdd8177 Fix tests for USE_TZ=False 2020-08-26 17:02:36 +01:00
Matt Westcott 43cb1f7811 Add --disabletimezone option to runtests.py 2020-08-26 17:02:36 +01:00
Matt Westcott 0f637a22de Add emailuser test run to Travis 2020-08-26 17:02:36 +01:00