0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-30 01:46:24 +01:00
Commit Graph

515 Commits

Author SHA1 Message Date
Matt Westcott
a159df380f Fetch new translations from Transifex 2020-05-04 11:34:27 +01:00
Rick van Hattem
40aedfc66b Show more granular error messages from Pillow (image uploads)
* Prevent `invalid_image` from hiding Pillow errors, instead rename key to `invalid_image_extension`
* Django already uses `invalid_image` - https://github.com/django/django/blob/stable/3.0.x/django/forms/fields.py#L639
* Add tests separate for images with invalid extensions vs non-images
2020-05-03 21:14:08 +10:00
Jonatas Baldin
a7f58821a7 Add publish & unpublish page hooks
* Add `before_unpublish_page` and `before_unpublish_page` hooks
* Add `before_publish_page` and `before_publish_page` hooks
* Resolves #4590
2020-05-03 14:18:13 +10:00
Jim Jazwiecki
6ea0cc52f3 Upgrade to Gulp v4 & Node 10
* Syntax changes to get Gulp working
* Require Node 10, use node 10 in CircleCI and squash.yml
* Update docs
* resolves #5653
2020-05-01 12:01:03 +10:00
François Poulain
55e65be079 allows unicode string in page copy form (#5991)
* resolve #5990
2020-04-29 18:28:56 +01:00
Tomas Walch
72ee81fbe5 Documentation: Adding Orderable superclass in code example in "Binding Pages to Snippets". If this is not included sorting in InlinePanel won't work so good to include it in documentation. 2020-04-28 16:21:36 +01:00
Chrisranjana.com
1f421e35f0 Add ability to sort search promotions on listing page
* resolves #3897
2020-04-28 20:44:54 +10:00
Ascani Carlo
5f3c12682f Redirect to previous url when deleting/copying/unpublish a page
* modify register_page_listing_buttons & register_page_listing_more_buttons to handle next_url kwarg
* resolves #3010
2020-04-26 18:24:13 +10:00
Sylvain Fankhauser
2055da6a3a Fix code example in image file formats docs 2020-04-25 15:39:05 +10:00
Matt Westcott
4ba901691b Add changelog / release notes for 2.10 2020-04-22 13:54:09 +01:00
Matt Westcott
42a5027dcf Update translator credits 2020-04-21 14:58:33 +01:00
Matt Westcott
f06270345f Fix incorrect language code for Japanese in language choice dropdown
Fixes #5925
2020-04-21 13:56:55 +01:00
Matt Westcott
1d043914b4 Release notes for 2.7.2 2020-04-14 10:11:23 +01:00
Matt Westcott
82cafd539a Add Jacob to core team 2020-04-08 12:12:52 +01:00
Karl Hobley
9d4009bebb Changelog/release notes 2020-04-08 11:12:57 +01:00
Mohamed Feddad
bb2e460c0b Replace deprecated ugettext, ungettext with gettext and ngettext. (#5907) 2020-04-02 17:15:26 +01:00
Karran Besen
36e777418f Fix: Hide empty 'view live' links 2020-03-20 14:33:09 -04:00
Paulo
494260f8ee Fixed #5537 -- Fetch deferred stream fields from db (#5661) 2020-03-19 17:20:22 +00:00
Frantisek Holop
fc0cf64ac6 Be more specific regarding the cached loader. (#5754)
Be more explicit about not needing to enable the `cached.Loader`
manually, unless using some custom loaders.
2020-03-19 17:01:29 +00:00
Matt Westcott
f83977c291 Add cache to speed up compiling media declarations for stream blocks
As proposed by @pimarc in https://github.com/wagtail/wagtail/issues/3062#issuecomment-586331423
2020-03-18 16:12:46 +00:00
Matt Westcott
7dae758ea4 Release note for #5845 2020-03-04 11:53:03 +00:00
stevelyall
babcbb7f80 Add Vidyard to oEmbed provider whitelist 2020-03-03 17:06:05 +00:00
dt
a6fb0762a8 Mention options for schema in sitemap
Add clear way to change schema in `sitemap.xml` to https on `sitemap`
documentation page
2020-02-25 21:33:21 +00:00
Matt Westcott
51d8433b6b Release note for #5787 2020-02-17 12:30:10 +00:00
Storm Heg
9f5cd32e27 Show InlinePanel non field validation errors 2020-02-16 21:43:35 +00:00
Matt Westcott
1f5761fc6c Remove duplicate of Jérôme Lebleu from contributors 2020-02-11 12:26:38 +00:00
Matt Westcott
d192bd1d44 Version bump beautifulsoup to 4.8.x (#5817) 2020-02-11 11:02:08 +00:00
Matt Westcott
4314f3d1a1
Implement MultipleChoiceBlock (rebase of #5592) (#5819)
* Implement MultipleChoiceBlock (squashed commits from #5592)

* Omit widget from frozen kwargs

* Rename get_callable_choices to indicate it is an internal method

* Add release notes for MultipleChoiceBlock
2020-02-10 22:24:49 +00:00
Arkadiusz Ryś
47f677577e Make server-side slug generation respect WAGTAIL_ALLOW_UNICODE_SLUGS (#5808) 2020-02-05 17:33:32 +00:00
Matt Westcott
8f6b3f8cba Fetch translations from Transifex 2020-02-03 13:33:08 +00:00
Thibaud Colas
2933589680 Add release notes for #5467 2020-01-24 20:56:18 +00:00
Thibaud Colas
eb0612c21c Add release notes for #5784 2020-01-24 15:56:34 +00:00
Matt Westcott
fb74944c90 Fetch new translations from Transifex 2020-01-20 20:29:41 +00:00
Eric Sherman
f5f841ed59 dropdown on search page by initing dropdowns on ajax success 2020-01-17 16:56:21 +00:00
Matt Westcott
590bea3b7b Revert "Fix submenu footer blocking items in admin" (#5606)
This change causes the footer to no longer be bottom-aligned when the menu is shorter than window height.

This reverts commit a459e91692.
2020-01-17 12:58:20 +00:00
Andy Chosak
349fca66f3 Fix: Properly save ordering of nested InlinePanels
The order of nested InlinePanels (recently formally added in 5566)
doesn't get saved properly due to some now-invalid assumptions in the JS
selector code.

Currently, Wagtail users can use the editor up/down arrows to order
InlinePanel elements that contain child InlinePanels, but these may not
be properly saved.

Before InlinePanel nesting was supported, it was a safer bet that a
child panel would only contain one hidden input named "-ORDER". With
nesting, however, a parent panel will also contain hidden inputs named
like this for its child panels. This breaks the logic used in the
ordering code.

This change modifies the logic to use the jQuery `.children()` selector
instead of `.next()`, ensuring that we reference the correct adjacent
panel item.

An easy way to test this against current master is to use the Wagtail
testapp test models that exercise this behavior:

1. `wagtail start testwagtail` to create a new project.
2. `cd testwagtail`
3. Edit testwagtail/settings/base.py to add the Wagtail test
application `'wagtail.tests.testapp'` to the list of `INSTALLED_APPS`.
For the admin to work properly with this app, you also need to add
`'wagtail.contrib.settings'` to that list and copy the definition of
`WAGTAILADMIN_RICH_TEXT_EDITORS` from wagtail/tests/settings.py.
4. `./manage.py migrate` to create your local database.
5. `./manage.py createsuperuser` to create an admin user.
6. Create a new Event Page
(http://localhost:8000/admin/pages/add/tests/eventpage/3/).
7. Fill in all required items, and then add multiple speakers under
"Speaker Lineup". For each speaker, add at least one Award. Save the
page.
8. Try using the up/down arrows to reorder the speakers (the parent
InlinePanel), and save the page.
9. Note that when the page reloads, the ordering hasn't been saved. If
you debug using the developer tools, you'll notice that this is because
the code being modified here selects the child panel items instead of
the adjacent parent panel item.
2020-01-15 16:43:32 +00:00
Johannes Vogel
4a1b337461 add etag support for documents 2019-12-18 15:28:23 +00:00
Benedikt Willi
233e7f5189 Add ability to filter image index by a tag
- Fixed error when searching and filtering by tag at the same time
2019-12-02 09:54:35 +10:00
Pete Andrew
abd8320dc3 Update links in docs to point at stable Django version 2019-12-01 13:19:40 +10:00
Timothy Bautista
1b0aed7b20 use block.super in extra CSS/JS blocks
- ensure templates that have extra css/js blocks call {{ block.super }} in them
- wagtail.contrib.settings edit
- modeladmin templates
2019-11-20 20:34:00 +10:00
Matt Westcott
dcf5722ebb Add Dawn Wages to core team 2019-11-19 23:33:37 +00:00
Tim Gates
c54c4aa4eb Fix simple typo: unpiblished -> unpublished 2019-11-19 23:30:29 +00:00
LB
9b64a8647c Update contributor name 2019-11-16 18:28:21 +10:00
WinterComes
06fb0764e0 Move get_document_model to __init__ & add get_document_model_string
Avoids issues where models are not yet loaded and document model is needed.

- apply isort
- fix minor typos
- fixes #5614
2019-11-07 07:47:12 +10:00
Tom Readings
e75b74911e Reference the embedly package requirement for embedly finder support (#5680) 2019-11-06 17:03:44 +00:00
Matt Westcott
8f70829911 Fetch new translations from Transifex 2019-11-06 13:05:43 +00:00
Karl Hobley
40dbb940e7 Improve diffing behavior for text fields 2019-10-29 17:22:49 -04:00
LB
34db9a394f Fix contributor name
- incorrectly added the issue creator not the PR creator
- updated name to the correct one - Stefani Castellanos
2019-10-29 08:23:44 +10:00
Stefani Castellanos
92864f22b4 Added label 'URL' for external link
- Regression - missing label for external link URL field in link chooser
- Resolves #5656
2019-10-29 08:19:31 +10:00
Igoranze
a459e91692 Fix submenu footer blocking items in admin
- items longer then the page height are no longer broken by the submenu footer
- long lists of submenu items are no longer blocked by the footer (version number)
2019-10-24 08:17:55 +10:00