Matt Westcott
f16965442e
2.1 -> 2.2
2019-04-01 20:28:34 +01:00
Matt Westcott
a3283dd7fb
Formalise support for Django 2.2
2019-04-01 19:59:04 +01:00
Thibaud Colas
c447f75bd4
Make the page reordering UI easier to find ( #5187 )
...
* Update icon-order icon glyph
* Implement new UI for child ordering toggle
* Update documentation for page reordering
2019-03-29 14:38:05 +00:00
Jonny Scholes
4d004ce808
Add filter string character check to jinja2 image template tag
2019-03-29 12:15:17 +00:00
Matt Westcott
a98d6567dc
Update core team in CONTRIBUTORS.rst
2019-03-29 12:14:09 +00:00
Matt Westcott
a2ba2a7a8a
Release note for #5157
2019-03-29 11:58:22 +00:00
LB Johnston
8b6f03c732
raise an error in tests if sub-classes of ActionMenuItem has no name
2019-03-29 11:48:15 +00:00
LB Johnston
46c024ba06
add name attribute to all derived classes of ActionMenuItem
2019-03-29 11:48:15 +00:00
Kalob Taulien
062ff73665
Add documentation for the ajax_template attribute
2019-03-29 11:25:01 +00:00
Haydn Greatnews
fa5c69ee00
Call specific on parent page and breadcrumbs in page chooser
...
There was a small bug in the page chooser, where it would display
`page.title` instead of `get_admin_display_title` when loaded on with a
specified parent. This was because the page chooser was falling back to
Page.get_admin_display_title instead of the specific kind
2019-03-29 11:21:06 +00:00
Tom Dyson
ba93dcef69
Security readme tweak
2019-03-27 11:50:15 +00:00
Jonny Scholes
01003f70a9
Update README.md
2019-03-27 11:50:15 +00:00
Jonny Scholes
2db775c725
Add security@wagtail.io to Readme
...
Ping @tomdyson - merge when the email is ready :)
2019-03-27 11:50:15 +00:00
Anna Pershyna
b1fab70847
added --no-save option from master branch
2019-03-26 12:06:47 +00:00
Anna Pershyna
bf0ea7645a
updated .squash.yml config
2019-03-26 12:06:47 +00:00
Matt Westcott
3134ffa119
Recommend npm install --no-save
when setting up node toolchain ( #5161 )
...
Running `npm install` without `--no-save` can introduce spurious changes to package-lock.json due to differences in platform / node version, and these have been known to accidentally sneak into people's PRs. `npm install` without `--no-save` should only be used when actively updating node dependencies in package.json.
2019-03-21 20:41:14 +00:00
Thibaud Colas
f987fa91c9
Upgrade Draftail to v1.2.1. Fix #4985 , adds more Markdown shortcuts ( #5117 )
...
This includes:
- [v1.0.0](https://github.com/springload/draftail/releases/tag/v1.0.0 ) (identical to v0.17.2)
- [v1.1.0](https://github.com/springload/draftail/releases/tag/v1.1.0 ) (contains fix for #4985 )
- [v1.2.0](https://github.com/springload/draftail/releases/tag/v1.2.0 )
- [v1.2.1](https://github.com/springload/draftail/releases/tag/v1.2.1 ) (fixes regression in v1.2.0)
Here is the combined CHANGELOG for what's relevant to Wagtail:
Bug fixes
~~~~~~~~~
- #4985 – Prevent crash when filtering pasted content whose last block is to be removed (e.g. unsupported image) ([#179 ](https://github.com/springload/draftail/issues/179 )).
- Stop unnecessarily calling `onSave` in the editor’s `onBlur` ([#173 ](https://github.com/springload/draftail/issues/173 )).
- Prevent crash in `DraftUtils.getEntitySelection`, when the provided entity key isn't valid (undefined, missing) ([#168 ](https://github.com/springload/draftail/pull/168 )).
- Fix entity removal and editing not doing anything when the selection is backwards (right to left) ([#168 ](https://github.com/springload/draftail/pull/168 )).
- Prevent the editor from crashing when copy-paste filtering removes all of its content (https://github.com/thibaudcolas/draftjs-filters/commit/652750f )
New features
~~~~~~~~~~~~
- Add support for Markdown shortcuts for inline styles, e.g. `**` for bold, `_` for italic, etc ([#134 ](https://github.com/springload/draftail/issues/134 ), [#187 ](https://github.com/springload/draftail/pull/187 )). View the full list of [keyboard shortcuts](https://www.draftail.org/docs/keyboard-shortcuts ).
New APIs
~~~~~~~~
- Add [`onFocus`](https://www.draftail.org/docs/api#managing-focus ) and [`onBlur`](https://www.draftail.org/docs/api#managing-focus ) props to use callbacks on those events. This can be useful for [form validation](https://www.draftail.org/docs/next/form-validation ). [#170 ](https://github.com/springload/draftail/issues/170 ), [#174 ](https://github.com/springload/draftail/pull/174 ), thanks to [@TheSpicyMeatball](https://github.com/TheSpicyMeatball ).
- Add [`plugins`](https://www.draftail.org/docs/plugins ) API to support extensions of the editor using the [draft-js-plugins](https://github.com/draft-js-plugins/draft-js-plugins ) architecture ([#83 ](https://github.com/springload/draftail/issues/83 ), [#171 ](https://github.com/springload/draftail/pull/171 )).
- Add ability to disable or customise the editor toolbar with [`topToolbar`](https://www.draftail.org/docs/customising-toolbars ).
- Add ability to add a toolbar below the editor with [`bottomToolbar`](https://www.draftail.org/docs/customising-toolbars ).
- Add data reset parameter to `DraftUtils.resetBlockWithType()`.
- Enable list continuation on Enter for custom `*-list-item` blocks. All that’s required is for the block type to end with `-list-item`.
None of those API additions will be usable within Wagtail (at least without hacks) until corresponding rich text features APIs are built to allow their configuration. The last 2 additions would already be usable but they would only be useful when leveraging the other APIs.
2019-03-21 20:29:26 +00:00
kevinhowbrook
1079b7f021
Improve the snippet UI by offering 'Don't delete' actions to the edit form
2019-03-21 13:09:17 +00:00
Evandro Miquelito
2a1d5b6065
update squash.yml file to run pip install for the current branch
2019-03-20 19:52:44 +00:00
Evandro Miquelito
04de2c8cb5
Remove port forwarding, not needed
2019-03-20 19:52:44 +00:00
Evandro Miquelito
e3c5d6710f
Adding a .squash.yml file
2019-03-20 19:52:44 +00:00
Matt Westcott
ab986f53ee
Revert "Add more readable focus state for buttons"
...
This reverts commit 768cb2a32f
.
2019-03-19 16:40:02 +00:00
Chris Adams
768cb2a32f
Add more readable focus state for buttons
2019-03-19 17:36:05 +10:00
Matt Westcott
c9ea6d8dce
Remove imports of django.utils.six ( #5153 )
...
* Remove django.utils.six import from wagtail/bin/wagtail.py
Previously it was necessary for this script to be entirely valid Python 2 syntax, so that it would get as far as outputting the friendly "unsupported version" error message. However, since dropping Django 1.11 support it is no longer possible to `pip install` Wagtail on Python 2 at all, so this is now a moot point.
* Eliminate remaining imports of django.utils.six
2019-03-18 13:57:51 +00:00
Tom Usher
0f8a55a6ce
Pass validators to FieldBlocks ( #5148 )
2019-03-15 18:42:08 +01:00
Wesley van Lee
c831d434ab
Added an option to the page model to be able to define the amount of subpages underneath a specific parent page
2019-03-15 18:14:05 +01:00
kevinhowbrook
339b6752af
Fix AttributeError on Cloudflare cache invalidation ( #5150 )
2019-03-15 15:40:16 +01:00
kevinhowbrook
7d583a52b9
When two date fields are in the same form, chrome ignores multiple autocomplete=off values. ( #5136 )
2019-03-15 10:58:17 +01:00
Matt Westcott
3c44037b2f
Fix warnings on building documentation ( #5145 )
...
* Fix "Duplicate explicit target name" warnings on extending_draftail.rst
ref: https://github.com/sphinx-doc/sphinx/issues/3921
* Fix 'Unknown target name' warning on third_party_tutorials.rst
* Add docstrings to Page.get_ancestors, get_descendants and get_siblings
Documents the `inclusive` flag and avoids the "Field list ends without a blank line; unexpected unindent" warning when building docs
2019-03-15 02:03:56 +01:00
Md. Arifin Ibne Matin
edfd9afc1d
Add more built-in rich text formats ( #5141 )
2019-03-15 01:39:18 +01:00
Wesley van Lee
50b187b757
Made the test more descriptive and changed the function so we do not have to change other tests
2019-03-14 18:32:29 +01:00
Wesley van Lee
e389a78e54
Added a test for checking the short description and processed reviewer's feedback
2019-03-14 17:55:14 +01:00
Wesley van Lee
a700e1352c
Preserve non breaking white spaces in rich text processing. Fix #4996 ( #5142 )
...
Prevent the initial loading of the rich-text field to replace non-breaking white spaces with normal spaces
2019-03-14 17:31:10 +01:00
Matt Westcott
3e1e67021e
Add release note for #5138 to 2.5 docs
2019-03-14 14:43:28 +01:00
Damian
ef7bd7989e
add form media to user add/edit forms ( #5146 )
2019-03-14 14:42:26 +01:00
Wesley van Lee
935028a57e
Use the label_for_field function to get the label for the fields in the InspectView
2019-03-14 14:37:00 +01:00
Coen van der Kamp
b2c8be0207
Merge pull request #5138 from caspertimmers/copy-page-slug-available
...
fixed #3281 check _slug_is_available when moving page
2019-03-14 14:05:34 +01:00
Matt Westcott
23a89774ad
Deprecation note for #5128
2019-03-14 12:11:16 +01:00
Matt Westcott
9ed662a343
Add formal deprecation for is_ajax=1 on pagination_nav.html
...
Some third-party packages still use it, e.g. 7a74a1d317/wagtailmodelchooser/templates/wagtailmodelchooser/chooser/model_results.html
2019-03-14 11:50:51 +01:00
Matt Westcott
b3ed5cc1cc
Deprecate wagtail.utils.pagination
2019-03-14 11:50:25 +01:00
Matt Westcott
1fe844a0e2
Simplify wagtail.utils.pagination using Paginator.get_page
...
https://docs.djangoproject.com/en/2.1/topics/pagination/#django.core.paginator.Paginator.get_page
2019-03-14 11:50:25 +01:00
Matt Westcott
c827cf0793
Remove URL type switching from pagination_nav; use querystring tag consistently instead
...
This doesn't preserve the old behaviour exactly, but testing across all paginated interfaces shows that it's better than it was (e.g. we're not forgetting to pass the current search term as query_string).
2019-03-14 11:50:25 +01:00
Matt Westcott
57d15ac635
Drop replace_page_param template tag in favour of the more flexible querystring tag
2019-03-14 11:50:24 +01:00
Matt Westcott
188c731e2c
Split ajax pagination nav into its own include
2019-03-14 11:49:17 +01:00
Casper Timmers
389f3262de
Merge branch 'master' into copy-page-slug-available
2019-03-14 09:57:59 +01:00
Andy Babic
b2eee20e1b
Move reversing_urls.rst into a subdirectory with it's own index, and include that index in the modeladmin docs' main toctree
2019-03-14 09:48:02 +01:00
Casper
086c900548
Add release notes for #3281
2019-03-14 09:45:05 +01:00
Casper
a3deeab12c
Correctly test for the presence of the message
2019-03-14 09:28:47 +01:00
Casper
4434887b18
Improve error message
2019-03-13 17:03:02 +01:00
Casper
b8aeeb9f5f
fixed #3281 check _slug_is_available when moving page
2019-03-13 16:38:15 +01:00