Wagtailmenus

Latest version: v4.0.1

Safety actively analyzes 687881 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 5 of 10

2.8.0

------------------

* Added improved active class attribution behaviour for menu items that link to custom URLs (Enabled using the `WAGTAILMENUS_CUSTOM_URL_SMART_ACTIVE_CLASSES` setting).
* Deprecated the existing active class attribution behaviour in favour of the above.
* Backend-specific template instances are now always used for rendering.
* Removed `get_template_engine()` method from `wagtailmenus.models.menus.Menu`
* Removed `panels` attributes from the `AbstractMainMenu` and `AbstractFlatMenu` models
* Removed `main_menu_panels` and `flat_menu_panels` from `wagtailmenus.panels`.
* Various documentation spelling/formatting corrections (thanks to Sergey Fedoseev and Pierre Manceaux).

2.7.1

------------------

* Fixed a bug in MenuTabbedInterfaceMixin preventing `content_panels` and `settings_panels` being picked up in the editing UI when using Wagtail 2.0.
* Remove the 'alpha' notice and title notation from the 2.7.0 release notes.
* Added a badge to README.rst to indicate the documentation build status.
* Added a missing 'migrate' step to the **Developing locally** instructions in the contribution guidelines.
* Updated the code block in the **.po to .mo** conversion step in the packaging guidelines to the `find` command with `execdir`.

2.7.0

------------------

* Added support for Wagtail 2.0 and Django 2.0
* Dropped support for Python 2 and 3.3.
* Dropped support for Wagtail versions 1.8 to 1.9
* Dropped support for Django versions 1.5 to 1.9
* Made numerous 'Python 3 only' optimisations to code.
* The `wagtailmenus.models.menus.MenuFromRootPage` class was removed.
* The `__init__()` method of `wagtailmenus.models.menus.ChildrenMenu` no
longer accepts a **root_page** keyword argument. The parent page should be
passed using the **parent_page** keyword instead.
* The *root_page* attribute has been removed from the
`wagtailmenus.models.menus.ChildrenMenu` class. Use the *parent_page*
attribute instead.
* The `sub_menu` template tag no longer accepts a *stop_at_this_level*
keyword argument.
* The `get_sub_menu_items_for_page()` and `prime_menu_items()` methods
have been removed from `wagtailmenus.templatetags.menu_tags`.
* The `get_attrs_from_context()` method has been removed from
`wagtailmenus.utils.misc`.
* The `get_template_names()` and `get_sub_menu_template_names()` methods
have been removed from `wagtailmenus.utils.template` and the redundant
`wagtailmenus.utils.template` module removed.
* Fixed an issue that was preventing translated field label text appearing for
the `handle` field when using the `FLAT_MENUS_HANDLE_CHOICES` setting
(Contributed by jeromelebleu)

2.6.0

------------------

* Improve compatibility with alternative template backends such as `jinja2`.
Implementation by hongquan.
* Added compatibility with `wagtail-condensedinlinepanel`.
* Updated the menu CMS editing UI to split rendering setting field out into
their own tab.
* Updated tests to test compatibility with Wagtail 1.13.

2.5.1

------------------

* Fixed a bug that was causing Django to create new migrations for wagtailmenus
after changing Django's `LANGUAGE_CODE` setting for a project. Thanks to
philippbosch from A Color Bright for the fix.

2.5.0

------------------

* Added rendering logic to Menu classes and refactored all existing template
tags to make use of it (massively reducing code duplication in menu_tags.py).
* Added support for several 'hooks', allowing for easier customisation of base
querysets and manipulation of menu items during rendering. For more
information and examples, see the 'Hooks' section of the documentation:
<http://wagtailmenus.readthedocs.io/en/latest/advanced_topics/hooks.html>
* Updated the 'sub_menu' tag to raise an error if used in a way that isn't
supported.
* Deprecated `get_sub_menu_items_for_page` and `prime_menu_items` methods from
`wagtailmenus.templatetags.menu_tags` (logic moved to menu classes).
* Deprecated `get_template` and `get_sub_menu_template_names` methods from
`wagtailmenus.utils.template` (logic moved to menu classes).
* Deprecated `get_attrs_from_context` method from `wagtailmenus.utils.misc`
(logic moved to menu classes).
* Deprecated the `MenuFromRootPage` class from `wagtailmenus.models.menus` in
favour of using a new `MenuFromPage` class that fits better with how it's
used in menu classes.
* Minor tidying / renaming of tests.
* Added a 'add_menu_items_for_pages()' method to the `MenuWithMenuItems` model,
which adds menu item to a menu object, linking to any pages passed in as a `PageQuerySet`.
* Added the 'autopopulate_main_menus' command, that can be run as part of the
installation process to help populate main menus based on the 'home' and
'section root' pages for each site.
* Fixed an issue with runtests.py that was causing tox builds in Travis CI
to report as successful, even when tests were failing. Contributed by
Oliver Bestwalter (obestwalter).
* Deprecated the `stop_at_this_level` argument for the `sub_menu` tag, which
hasn't worked for a few versions.
* Added support for Wagtail 1.12.
* Made the logic in menu classes 'page_children_dict' method easier to override
by moving it out into a separate 'get_page_children_dict()' method, which the
original (cached_property decorated) method calls.
* Made the logic in menu classes 'pages_for_display' method easier to override
by moving it out into a separate 'get_pages_for_display()' method, which the
original (cached_property decorated) method calls.
* Made the logic in menu classes 'top_level_items' method easier to override
by moving it out into a separate 'get_top_level_items()' method, which the
original (cached_property decorated) method calls.

Page 5 of 10

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.