1.6.1.rst 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. ===========================
  2. Wagtail 1.6.1 release notes
  3. ===========================
  4. .. contents::
  5. :local:
  6. :depth: 1
  7. What's new
  8. ==========
  9. Minor features
  10. ~~~~~~~~~~~~~~
  11. * Added ``WAGTAIL_ALLOW_UNICODE_SLUGS`` setting to make Unicode support optional in page slugs (Matt Westcott)
  12. Bug fixes
  13. ~~~~~~~~~
  14. * Wagtail's middleware classes are now compatible with Django 1.10's `new-style middleware <https://docs.djangoproject.com/en/stable/releases/1.10/#new-style-middleware>`_ (Karl Hobley)
  15. * The :meth:`~wagtail.core.models.Page.can_create_at` method is now checked in the create page view (Mikalai Radchuk)
  16. * Fixed regression on Django 1.10.1 causing Page subclasses to fail to use PageManager (Matt Westcott)
  17. * ChoiceBlocks with lazy translations as option labels no longer break Elasticsearch indexing (Matt Westcott)
  18. * The page editor no longer fails to load JavaScript files with ``ManifestStaticFilesStorage`` (Matt Westcott)
  19. * Django 1.10 enables client-side validation for all forms by default, but it fails to handle all the nuances of how forms are used in Wagtail. The client-side validation has been disabled for the Wagtail UI (Matt Westcott)
  20. Upgrade considerations
  21. ======================
  22. Multi-level inheritance and custom managers
  23. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  24. The inheritance rules for :ref:`custom_page_managers` have been updated to match Django's standard behaviour. In the vast majority of scenarios there will be no change. However, in the specific case where a page model with a custom ``objects`` manager is subclassed further, the subclass will be assigned a plain ``Manager`` instead of a ``PageManager``, and will now need to explicitly override this with a ``PageManager`` to function correctly:
  25. .. code-block:: python
  26. class EventPage(Page):
  27. objects = EventManager()
  28. class SpecialEventPage(EventPage):
  29. # Previously SpecialEventPage.objects would be set to a PageManager automatically;
  30. # this now needs to be set explicitly
  31. objects = PageManager()