2017-02-08 23:42:35 +00:00
===========================================
Wagtail 1.10 release notes - IN DEVELOPMENT
===========================================
.. contents ::
:local:
:depth: 1
What's new
==========
Other features
~~~~~~~~~~~~~~
2017-02-05 09:01:35 +00:00
* Use minified versions of jQuery and jQuery UI in the admin. Total savings without compression 371 KB (Tom Dyson)
* Hooks can now specify the order in which they are run (Gagaro)
2017-02-04 09:00:33 +00:00
* Added a `` submit_buttons `` block to login template (Gagaro)
2017-02-15 17:46:28 +00:00
* Added `` construct_image_chooser_queryset `` , `` construct_document_chooser_queryset `` and `` construct_page_chooser_queryset `` hooks (Gagaro)
2017-02-10 15:24:29 +00:00
* The homepage created in the project template is now titled "Home" rather than "Homepage" (Karl Hobley)
2017-02-10 16:29:02 +00:00
* Signal receivers for custom `` Image `` and `` Rendition `` models are connected automatically (Mike Dingjan)
2017-01-24 17:03:21 +00:00
* `` PageChooserBlock `` can now accept a list/tuple of page models as `` target_model `` (Mikalai Radchuk)
2017-01-22 10:58:54 +00:00
* Styling tweaks for the ModelAdmin's `` IndexView `` to be more inline with the Wagtail styleguide (Andy Babic)
2017-02-23 12:24:32 +00:00
* Added `` .nvmrc `` to the project root for Node versioning support (Janneke Janssen)
* Added `` form_fields_exclude `` property to ModelAdmin views (Matheus Bratfisch)
2017-02-23 12:23:03 +00:00
* User creation / edit form now enforces password validators set in `` AUTH_PASSWORD_VALIDATORS `` (Bertrand Bordage)
2017-02-10 16:29:02 +00:00
2017-02-08 23:42:35 +00:00
Bug fixes
~~~~~~~~~
2017-02-11 17:11:13 +00:00
* Marked 'Date from' / 'Date to' strings in wagtailforms for translation (Vorlif)
2017-02-22 14:15:11 +00:00
* "File" field label on image edit form is now translated (Stein Strindhaug)
2017-02-13 10:21:40 +00:00
* Unreliable preview is now reliable by always opening in a new window (Kjartan Sverrisson)
2017-02-14 05:51:29 +00:00
* Fixed placement of `` {{ block.super }} `` in `` snippets/type_index.html `` (LB (Ben Johnston))
2017-02-15 15:20:38 +00:00
* Optimised database queries on group edit page (Ashia Zawaduk)
2017-02-21 13:57:09 +00:00
* Choosing a popular search term for promoted search results now works correctly after pagination (Janneke Janssen)
2017-02-28 12:49:33 +00:00
* IDs used in tabbed interfaces are now namespaced to avoid collisions with other page elements (Janneke Janssen)
2017-03-01 16:23:02 +00:00
* Page title not displaying page name when moving a page (Trent Holliday)
2017-02-08 20:22:10 +00:00
* The ModelAdmin module can now work without the wagtailimages and wagtaildocs apps installed (Andy Babic)
2017-03-08 21:57:07 +00:00
* Cloudflare error handling now handles non-string error responses correctly (hdnpl)
2017-02-11 17:11:13 +00:00
2017-02-08 23:42:35 +00:00
Upgrade considerations
======================
2017-02-10 16:29:02 +00:00
2017-02-22 17:38:44 +00:00
Django 1.9 and Python 3.3 support dropped
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Support for Django 1.9 and Python 3.3 has been dropped in this release; please upgrade from these before upgrading Wagtail. Note that the Django 1.8 release series is still supported, as a Long Term Support release.
2017-02-10 16:29:02 +00:00
Signals on custom `` Image `` and `` Rendition `` models connected automatically
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2017-02-16 17:10:38 +00:00
Projects using :ref: `custom image models <custom_image_model>` no longer need to set up signal receivers to handle deletion of image files and image feature detection, as these are now handled automatically by Wagtail. The following lines of code should be removed:
2017-02-10 16:29:02 +00:00
.. code-block :: python
# Delete the source image file when an image is deleted
@receiver(post_delete, sender=CustomImage)
def image_delete(sender, instance, **kwargs):
instance.file.delete(False)
# Delete the rendition image file when a rendition is deleted
@receiver(post_delete, sender=CustomRendition)
def rendition_delete(sender, instance, **kwargs):
instance.file.delete(False)
2017-02-16 17:10:38 +00:00
# Perform image feature detection (if enabled)
@receiver(pre_save, sender=CustomImage)
def image_feature_detection(sender, instance, **kwargs):
if not instance.has_focal_point():
instance.set_focal_point(instance.get_suggested_focal_point())