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

3187 Commits

Author SHA1 Message Date
Matt Westcott
d56f8ea1c5
More prominent note about wagtail-localize in i18n docs (#6506) 2020-11-02 12:46:16 +00:00
Karl Hobley
516150403b
Update 2.12.rst 2020-10-23 20:07:51 +01:00
Matt Westcott
94f6b755b2 Version bump to start work on 2.12 2020-10-23 16:55:21 +01:00
Matt Westcott
e96f46c9e5 Version bump to 2.11rc1 2020-10-23 15:10:10 +01:00
Karl Hobley
6234023f39
Changelog / relase note for internationalisation (#6492)
* Changelog / relase note for internationalisation

* Apply suggestions from code review

Co-authored-by: Matt Westcott <matthew@torchbox.com>
2020-10-23 14:26:44 +01:00
Loic Teixeira
6c9478c139 Rework headings hierarchy
Initial hierarchy:

- Available panel types
    - FieldPanel
    - StreamFieldPanel
    - MultiFieldPanel
    - InlinePanel
    - FieldRowPanel
    - HelpPanel
    - PageChooserPanel
    - ImageChooserPanel
    - FormSubmissionsPanel
    - DocumentChooserPanel
    - SnippetChooserPanel
        - Built-in Fields and Choosers
        - Field Customisation
    - Full-Width Input
    - Titles
    - Placeholder Text
    - Required Fields
    - Hiding Fields
        - Inline Panels and Model Clusters

Revised Hierarcy:

- Panel types
    - Built-in Fields and Choosers
        - FieldPanel
        - StreamFieldPanel
        - MultiFieldPanel
        - InlinePanel
        - FieldRowPanel
        - HelpPanel
        - PageChooserPanel
        - ImageChooserPanel
        - FormSubmissionsPanel
        - DocumentChooserPanel
        - SnippetChooserPanel
    - Field Customisation
        - Full-Width Input
        - Titles
        - Placeholder Text
        - Required Fields
        - Hiding Fields
    - Inline Panels and Model Clusters
2020-10-23 10:36:01 +01:00
Karl Hobley
bd70ecf318 Tweaks to internationalisation docs 2020-10-23 10:29:22 +01:00
Matt Westcott
7d92e3982f Fix steps for adding translations to an existin snippet
* Fix BootstrapTranslatableMixin to skip TranslatableModel's system check for the missing unique constraint
* Fix incorrect import for BootstrapTranslatableModel and use of `--empty` in final schema migration
* Clarify handling of Meta classes, the fact that you need to run makemigrations for step 1, and what to do for the non-nullable 'locale' prompt
2020-10-22 16:44:54 +01:00
LB Johnston
f6dce3d6df Update changelog entries for @samgans 2020-10-22 19:46:07 +10:00
Karl Hobley
f0ce1f4775 Replace pushPage/popPage with more flexible gotoPage method
- page explorer
2020-10-22 19:45:34 +10:00
Anton Zhyltsou
41eccc72bc Consistently redirect to admin home on permission denied
* Catch PermissionDenied exceptions in require_admin_access decorator
* Fixed permissions errors for the documents views
* Added permissions tests for the images views
* Fixed some tests for limited permissions
* fixes #6352
2020-10-22 00:10:24 +10:00
Coen van der Kamp
fd5e6b657f Switch breadcrumb icons to SVG 2020-10-21 23:57:09 +10:00
Matt Westcott
878f2784cb Add config section for doc8 in setup.cfg and ignore _build dir 2020-10-21 12:39:32 +01:00
Matt Westcott
accdbd2174 Mark 2.11 as an LTS release 2020-10-21 12:14:04 +01:00
Matt Westcott
75f363ecf3 fix trailing whitespace 2020-10-21 12:12:34 +01:00
Thibaud Colas
6e404740c7 Implement admin-only IE11 support warning message, linking to support plans 2020-10-21 12:05:27 +01:00
meghanabhange
3a2f2a6ea3 form_classname meta in FieldBlock (#6470) 2020-10-20 19:17:54 +01:00
Sævar Öfjörð Magnússon
b7643f869d Fix spacing around the privacy indicator panel. (#6454) 2020-10-20 13:07:03 +01:00
Andy Babic
cbf65ba645 Release notes for #6386 2020-10-19 21:37:28 +01:00
David Bramwell
e28aa6b194 Document ModlelAdmin.prepopulated_fields 2020-10-19 21:36:05 +01:00
Matt Westcott
9947b955da Lint config fixes (#6473)
Ref #6463, #6428

* pin isort to 5.6.4
* update isort version mentioned in python_guidelines.rst
* make lint commands consistent between make lint and circleci
* fix isort errors on files outside of /wagtail
* speed up isort by ignoring additional directories and filetypes
2020-10-19 21:33:10 +01:00
Jim Jazwiecki
024717fe0f add support for natural keys to group collection permissions for use in fixtures (#6211) 2020-10-19 21:31:10 +01:00
Karl Hobley
0efe4a75a5
[RFC 54] Internationalisation reference docs (#6377)
* Reference docs for internationalisation

* Update docs/reference/pages/model_reference.rst

Co-authored-by: Dan Braghis <dan@zerolab.org>

* Update docs/reference/pages/model_reference.rst

Co-authored-by: Dan Braghis <dan@zerolab.org>

* Update docs/reference/pages/model_reference.rst

Co-authored-by: Dan Braghis <dan@zerolab.org>

* Apply suggestions from code review

Co-authored-by: Dan Braghis <dan@zerolab.org>

* Add missing comma

* Apply suggestions from code review

Co-authored-by: Matt Westcott <matthew@torchbox.com>

Co-authored-by: Dan Braghis <dan@zerolab.org>
Co-authored-by: Matt Westcott <matthew@torchbox.com>
2020-10-19 18:40:58 +01:00
Matt Westcott
9fab50e87a remove trailing whitespace 2020-10-19 18:11:12 +01:00
Jean Zombie
b5cfca31eb Add example of updating a page within after_create_page (#6373)
This update intends to add the answer I got on my slack support request (https://wagtailcms.slack.com/archives/C81FGJR2S/p1599209092087000).
2020-10-19 18:01:49 +01:00
Matt Westcott
27432e6c3f Release note for #5976 2020-10-18 15:31:56 +01:00
Matt Westcott
5f712b803a fix duplicate target name enabling_internationalisation 2020-10-16 14:15:33 +01:00
Karl Hobley
82dafc7ef8 Add docs for new i18n API filters (#6452) 2020-10-16 13:57:37 +01:00
Karl Hobley
bdfee22e8b
New topic docs for internationalisation (#6436)
* New topic docs for internationalisation

* Spelling + Grammar fixes

* Clarity fixes

* Fix formatting issues
2020-10-16 13:36:19 +01:00
Karl Hobley
44d40292e8 Add release note for page aliases (#6468) 2020-10-16 11:01:10 +01:00
Karl Hobley
10137b0162 Changelog / release notes for #6440 and #6441 + some spelling fixes 2020-10-16 10:45:29 +01:00
Karl Hobley
7f7f9b4de1 Make snippets action menu hookable 2020-10-14 14:41:22 +01:00
Matt Westcott
7e74b2b5d9 Add migration to apply alphabetical collection ordering 2020-10-13 17:54:35 +01:00
Matt Westcott
906380486d isort new files added in #6428 2020-10-13 14:19:07 +01:00
Matt Westcott
7be5363dac
Avoid retranslating month / weekday names that Django already provides (#6301)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2020-10-09 14:16:40 +01:00
Karl Hobley
c170c50c78 Add view for converting aliases into regular pages 2020-10-08 10:24:58 +01:00
Karl Hobley
b5eddca28b Synchronise alias page content when the source is updated 2020-10-08 10:24:58 +01:00
Karl Hobley
674fa8e27a Add Page.create_alias method 2020-10-08 10:24:58 +01:00
Karl Hobley
17f63f0efc Add alias_of field to Page 2020-10-08 10:24:58 +01:00
Karl Hobley
77610d1e64 Changelog / Release notes for #6434 and #6442 2020-10-06 16:02:48 +01:00
Sævar Öfjörð Magnússon
9d10e28214
Update wagtail app list to match installed apps in documentation 2020-10-06 15:03:39 +01:00
Karl Hobley
f2dfff8061 Flake8 all other Python files 2020-10-05 14:27:50 +01:00
Matt Westcott
dd42d91663 Release note / additional fix for #6339 2020-10-05 14:25:33 +01:00
Frantisek Holop
07a4b41444 deprecated 2020-10-05 14:23:50 +01:00
Matt Westcott
dd442a3990 remove trailing whitespace to placate doc8 2020-10-05 12:44:57 +01:00
jacobtoppm
c5a7584553 Add changelog and contributor for #6423 2020-10-05 12:36:54 +01:00
Sævar Öfjörð Magnússon
610cf07a85 Remove reference to photographer credit in documentation, add reference to title 2020-10-05 12:34:26 +01:00
Sævar Öfjörð Magnússon
cbe5c109dc Fix incorrect reference to edit fields in image documentation 2020-10-05 12:34:26 +01:00
meghanabhange
f1fbbcbc24
Add validation for file extension in AbstractDocument using WAGTAIL_DOCS_EXTENSIONS setting (#6423) 2020-10-05 12:26:00 +01:00
Karl Hobley
aafb5fb1eb Change docs code block style to 'default' 2020-10-05 11:21:07 +01:00
Karl Hobley
cf38b2457d Put quotes around some inline code 2020-10-03 14:43:03 +01:00
Karl Hobley
181b523faf Add more names and jargon to spelling wordlist 2020-10-03 14:43:03 +01:00
Karl Hobley
72ef7a73e8 ElasticSearch => Elasticsearch 2020-10-03 14:43:03 +01:00
Karl Hobley
39d931d77d Javascript => JavaScript 2020-10-03 14:43:03 +01:00
Karl Hobley
6e5f89adf2 General spelling fixes 2020-10-03 14:43:03 +01:00
Karl Hobley
9195131738 Lint docs with doc8 2020-10-03 14:43:03 +01:00
Karl Hobley
8251b4a6c7 Changelog / Release note / Contributor for #6420 2020-10-01 18:53:35 +01:00
Cynthia Kiser
b817e869bf Open preview in new window (#6395)
Make this preview button match the other Preview/Draft/Live buttons in admin UI
2020-10-01 13:23:32 +01:00
Ameet Virdee
48a8af71e5 Add documentation for placeholder text in Field Panels 2020-10-01 08:06:43 +02: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
thenewguy
a88866c3c6 Force string url before passing to urlparse (#6341) 2020-09-30 08:10:50 +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
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
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
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
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
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
Andy Babic
0d8301e28f Release notes for #6190 2020-09-03 20:11:22 +01:00
Andy Babic
10d68fdd09 Release notes for #6362 2020-09-02 20:42:56 +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
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
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
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
30c1a4132c Release note for #6335 2020-08-26 14:17:18 +01:00
Matt Westcott
3b361673ee Fill in release date for 2.10.1 2020-08-26 14:14:13 +01:00
Matt Westcott
e3bbccd814 Fix timesince_last_update for naive datetimes (USE_TZ=False)
Fixes #6345
2020-08-25 15:11:24 +01:00
Katie McLaughlin
637000fc08 Add notes for CORS settings on Google Cloud Storage 2020-08-24 13:05:38 +01:00
Katie McLaughlin
707dc171dc Add Google Cloud deployment references
App Engine video
Cloud Run codelab
2020-08-24 13:05:38 +01:00
Matt Westcott
23bec4345b Release note for #6336 2020-08-24 09:48:00 +01:00
Matt Westcott
a1f882b7c9 Convert remaining gettext .format strings to old-style string formatting
As per #5548 / #6238. Fixes #6343
2020-08-21 13:26:00 +01:00