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

9909 Commits

Author SHA1 Message Date
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
Dan Braghis
bce1e440bd
Add spacing to daterange filter inputs (#6182) 2020-06-27 10:20:20 +01:00
Matt Westcott
1b92c0a9ea
Upgrade jquery to 3.5.1 (#6167)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2020-06-27 08:22:13 +01:00
Dan Braghis
18fdd905d3 Release notes for #6125 and #6121 2020-06-26 11:12:35 +01:00
Coen van der Kamp
437e0a8ec9 Switch all header h1s icons to svg 2020-06-26 10:56:01 +01:00
Coen van der Kamp
073f072e07 Display header icon in styleguide 2020-06-26 10:55:27 +01:00
Coen van der Kamp
8a4234f83a Switch header h1 to SVG icon 2020-06-26 10:55:27 +01:00
Samir Shah
30419231e5 Disable password auto-completion on UserForm password fields. (#6175) 2020-06-25 17:11:03 +01:00
Matt Westcott
3ec7eada56 Promote redirect importing to a major feature 2020-06-25 17:09:17 +01:00
Matt Westcott
e9e6a8d5e7 Add more detail to RoutablePageMixin example (#6128) 2020-06-25 16:57:58 +01:00
Gassan Gousseinov
a4e05f4538 I would like only add my own editor without to redefine a default one. (#6118) 2020-06-25 16:53:06 +01:00
Thibaud Colas
c58a681828
Optimise npm install in squash for speed & logs visibility (#6158)
* Optimise npm install in squash for speed & logs

- `--no-optional` prevents installing dependencies that shouldn’t be needed for a one-off build
- `--no-audit` prevents running the `npm audit`
- `--progress=false`

* Add additional --no-fund flag to npm install

* Add "CI=true" environment variable to Squash builds for Node tooling

* Move CI=true to commands that need it

* Remove options that did not work
2020-06-25 16:03:42 +01:00
Jean Zombie
9baf6ce62a Update hooks.rst (#6160 / #6161)
This proposed update is in regard to Issue #6160
2020-06-25 14:54:16 +01:00
Matt Westcott
8d21ad6e5a Release note for #6176 in 2.10 2020-06-25 10:31:29 +01:00
Matt Westcott
0067194d71 Release note for #6176 on 2.9.1 2020-06-25 10:29:52 +01:00
Matt Westcott
5f31b644e7 Make wagtail.contrib.sitemaps work without SiteMiddleware (#6176)
Fixes #6174
2020-06-25 10:29:36 +01:00
Matt Westcott
216dfdf459 Add release notes for Wagtail 2.9.1 2020-06-25 10:29:15 +01:00
Matt Westcott
ce6b2fe97b Fix numbering of postgres search migrations 2020-06-18 10:56:55 +01:00