Dan Braghis
07ad6f20b4
Add utility classes for svg icons
2020-07-16 16:03:20 +10:00
Dan Braghis
eb6987beea
Update inline dropdown components to use svg
2020-07-16 16:02:16 +10:00
Dan Braghis
06c2e74b5c
Update longrunning buttons to use SVG
2020-07-16 16:02:16 +10:00
Dan Braghis
fffb9bae92
Update dropdown toggle to use SVG
2020-07-16 16:02:16 +10:00
Dan Braghis
f9c11b3646
Update icon-only buttons to use SVG
2020-07-16 16:02:16 +10:00
Dan Braghis
50bdd90068
Update bicolor buttons to use SVGs
2020-07-16 16:02:16 +10:00
dependabot[bot]
a24657014e
Bump lodash from 4.17.15 to 4.17.19
...
Bumps [lodash](https://github.com/lodash/lodash ) from 4.17.15 to 4.17.19.
- [Release notes](https://github.com/lodash/lodash/releases )
- [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.19 )
Signed-off-by: dependabot[bot] <support@github.com>
2020-07-16 15:47:34 +10:00
Matt Westcott
78c9ef31d7
Typo fixes
2020-07-15 17:18:46 +01:00
Martin Sandström
c8f493c095
Add documentation for WAGTAIL_REDIRECTS_FILE_STORAGE setting ( #6114 )
2020-07-15 16:35:04 +01:00
Matt Westcott
1ed501e5af
Sanitise window.location.hash when passing to jquery for tab handling ( #6155 )
...
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2020-07-15 16:20:39 +01:00
Bertrand Bordage
2b3f8fe4e1
Adds the duplicate icon from wagtail-react-streamfield. ( #6227 )
2020-07-15 16:01:41 +02:00
Matt Westcott
9917d7d2e9
Additional documentation for next_url
2020-07-15 11:53:39 +10:00
Matt Westcott
e1a8dbf09e
Fix next_url handling to pass a URL rather than a dict of query parameters
...
This makes the URL usable by third-party views that don't follow Wagtail's parameter passing conventions.
2020-07-14 12:21:02 +01:00
Matt Westcott
31a9b285a0
Add test for button URLs including a 'next' parameter
2020-07-14 11:59:48 +01:00
Kevin
d75ab584c7
Fixing typos
2020-07-14 10:56:28 +01:00
Matt Westcott
ee954b8fe6
Release note for #5240
2020-07-13 18:32:01 +01:00
Andy Babic
af7f446562
Add / update tests
2020-07-13 18:30:46 +01:00
Andy Babic
10312cb4da
Raise a custom exception when attempting to edit a page who's model class cannot be found in the codebase
2020-07-13 18:25:11 +01:00
Andy Babic
dd680ae4d4
Factor out content type fetching into a separate Page method, simplify the specific specific_class methods, and improve docstrings
2020-07-13 18:25:11 +01:00
Steven Wood
5611f5ef6c
Clarify origin of From address used in password reset emails ( #6219 )
2020-07-13 18:15:21 +01:00
Matt Westcott
aacf8ba34a
isort fix
2020-07-13 17:20:05 +01:00
Matt Westcott
b8c36c0d7d
Move try/except in migrate_legacy_clean_name to cover where the query is executed
...
As per https://github.com/wagtail/wagtail/pull/6093/files#r453764410
2020-07-13 17:17:59 +01:00
LB Johnston
450f1bef34
add upgrade considerations for hooks function signature changes
2020-07-13 16:06:09 +01:00
LB Johnston
dca628b988
Add fallback for old signature page listing hooks
...
- hook - register_page_listing_buttons
- hook - register_page_listing_more_buttons
- fixes #6208
2020-07-13 16:06:08 +01:00
Matt Westcott
0546237a15
Release note for #6093
2020-07-13 14:03:18 +01:00
LB
d0bb803645
Forms - convert clean_name to a field on form field model
...
* make fields more convenient to use in templates by using snake_case not kebab-case
* avoid usage of unidecode when generating a safe ascii string for the field name
* replace the property clean_name with a field which will be added on save only
* add checks so that existing data in Wagtail apps that used the kebab-case and unidecode will be honoured
* rename a test for validating duplicate labels and handle potential clashes in clean name generation
* add missing migrations for test app
2020-07-13 10:45:18 +10:00
LB
80375f1451
Replace unidecode usage with string_to_ascii from core utils
...
* In preparation of replacing unidecode requirement
2020-07-12 20:41:28 +10:00
LB
6b1c356b20
Add core util - string_to_ascii
...
* start to keep all unidecode usage in one central place for future replacement
2020-07-12 20:41:28 +10:00
LB
3d62f5e732
Add core util tests - camelcase_to_underscore
2020-07-12 20:41:28 +10:00
LB
abedff12cd
Add core util - safe_snake_case
...
* converts a string to ascii and parses through cautious slugify before replacing dashes with underscores
2020-07-12 20:41:28 +10:00
Storm Heg
8c306910dd
Fix incorrect urls in the docs
2020-07-06 13:15:40 +01:00
Storm Heg
98c66359a8
Replace a few instances of re_path with path
2020-07-06 13:15:39 +01:00
Storm Heg
4076b9ef5e
Replace calls to django.conf.urls.url with django.urls.path or django.urls.re_path
2020-07-06 13:15:37 +01:00
Matt Westcott
34785b9085
Release note for #6196
2020-07-03 19:19:41 +01:00
Matt Westcott
2b87454a95
Add non-field errors to document add/edit forms
2020-07-03 19:17:16 +01:00
Matt Westcott
18b8b9d5fc
Add non-field errors to image add/edit forms
2020-07-03 19:17:16 +01:00
Matt Westcott
8b1699437f
Release notes for 2.9.2
2020-07-03 12:58:19 +01:00
Matt Westcott
91085b7655
move import of Site to avoid error when wagtail.contrib.sitemaps is in INSTALLED_APPS
...
The sitemap_generator module is imported from wagtail/contrib/sitemaps/__init__.py, which causes it to be imported immediately if wagtail.contrib.sitemaps is in INSTALLED_APPS (which is not required or part of the setup docs, but is something people are understandably likely to do). This is too early in startup to import models, and fails with an AppRegistryNotReady exception.
There's probably a good case for not having that import in __init__.py, but some code/docs in the wild relies on it (e.g. https://stackoverflow.com/questions/44681046/how-to-join-wagtail-and-django-sitemaps ), so better to leave it in for now.
2020-07-03 12:56:57 +01:00
Maxxen
4afdbdea56
added maxNumChildBlocks property and callbacks to disable adding/removing child blocks to sequence. Also made streamfield add-buttons dissapear when capacity is reached ( #6070 )
2020-06-30 15:02:16 +01:00
Matt Westcott
ccbbe8b8ee
Release note for #6183 in 2.10
2020-06-30 14:25:30 +01:00
Andy Babic
58741d3989
Update Page.objects.specific() to warn instead of erroring when pages of the specific type cannot be found ( #5928 )
2020-06-30 14:23:25 +01:00
Matt Westcott
4ee07d8073
Fill in release date for 2.9.1
2020-06-30 11:53:42 +01:00
Matt Westcott
98301fe736
Release note for #6183 in 2.9.1
2020-06-30 11:49:55 +01:00
Matt Westcott
d6d357fee7
Purge image rendition cache on rendition deletion
...
Fixes #6096
2020-06-30 11:11:01 +01:00
Mike Monteith
e9fa7ea915
Remove Django 2.1 from install_requires
...
Since Wagtail 2.9, Django >=2.2 is required. https://docs.wagtail.io/en/v2.9/releases/upgrading.html#compatible-django-python-versions
2020-06-30 11:08:58 +01:00
LB (Ben Johnston)
80f7db750a
Fix gulp watch task ( #6117 )
...
- revise watch & task syntax for Gulp v4 requirements
- ensure only one watcher gets created for file type paths
2020-06-30 09:27:50 +01:00
Dan Braghis
b77f1b75ce
Fix MediaBlock SVG icon size in the rich text editor
...
Fixes #6142
2020-06-30 07:13:29 +10:00
Seb
b9347ee970
Add ability to extend EditHandler without a children attribute
...
- Only run checks on children for tabs that use BaseCompositeEditHandler (have children)
2020-06-30 07:08:03 +10:00
Matt Westcott
390a070494
Move pages summary item hook into wagtail.admin.wagtail_hooks
...
As per https://github.com/wagtail/wagtail/issues/6160#issuecomment-646080597 - this ensures that the hook will be triggered in the correct order with respect to INSTALLED_APPS.
2020-06-29 18:07:14 +01:00
Coen van der Kamp
b1d82cf2db
Switch messages icons to SVG ( #6124 )
2020-06-29 16:17:04 +01:00