Skip to content

Commit

Permalink
Prep for v2.4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy Babic committed Oct 27, 2017
1 parent d3cce3e commit 14f3816
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 10 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Changelog
=========

2.4.2 (27.10.2017)
2.4.3 (27.10.2017)
------------------

* Fixed a bug that was causing Django to create new migrations for wagtailmenus
Expand Down
4 changes: 1 addition & 3 deletions docs/source/releases/2.4.2.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,4 @@
Wagtailmenus 2.4.2 release notes
================================

This is a maintenence release to fix a bug that was resulting in Django creating additional migrations for the app when running the ``makemigrations`` command after changing the project's default language to something other than "en".

Thanks to @philippbosch from A Color Bright for submitting the fix.
There are no changes in this release.
7 changes: 7 additions & 0 deletions docs/source/releases/2.4.3.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
================================
Wagtailmenus 2.4.3 release notes
================================

This is a maintenence release to fix a bug that was resulting in Django creating additional migrations for the app when running the ``makemigrations`` command after changing the project's default language to something other than "en".

Thanks to @philippbosch from A Color Bright for submitting the fix.
1 change: 1 addition & 0 deletions docs/source/releases/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Release notes
.. toctree::
:maxdepth: 1

2.4.3
2.4.2
2.4.1
2.4.0
Expand Down
2 changes: 1 addition & 1 deletion wagtailmenus/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# major.minor.patch.release.number
# release must be one of alpha, beta, rc, or final
VERSION = (2, 4, 2, 'final', 0)
VERSION = (2, 4, 3, 'final', 0)
__version__ = get_version(VERSION)
stable_branch_name = get_stable_branch_name(VERSION)

Expand Down
13 changes: 8 additions & 5 deletions wagtailmenus/models/menus.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@

from django.db import models
from django.core.exceptions import ImproperlyConfigured, ValidationError
from django.utils import six
from django.utils.encoding import python_2_unicode_compatible
from django.utils.functional import cached_property
from django.utils.functional import cached_property, lazy
from django.utils.safestring import mark_safe
from django.utils.translation import ugettext_lazy as _

Expand All @@ -18,6 +19,8 @@
from .. import app_settings
from ..forms import FlatMenuAdminForm

mark_safe_lazy = lazy(mark_safe, six.text_type)


# ########################################################
# Base classes
Expand Down Expand Up @@ -235,7 +238,7 @@ class AbstractMainMenu(MenuWithMenuItems):
verbose_name=_('maximum levels'),
choices=app_settings.MAX_LEVELS_CHOICES,
default=2,
help_text=mark_safe(_(
help_text=mark_safe_lazy(_(
"The maximum number of levels to display when rendering this "
"menu. The value can be overidden by supplying a different "
"<code>max_levels</code> value to the <code>{% main_menu %}"
Expand All @@ -246,7 +249,7 @@ class AbstractMainMenu(MenuWithMenuItems):
verbose_name=_('specific page usage'),
choices=app_settings.USE_SPECIFIC_CHOICES,
default=app_settings.USE_SPECIFIC_AUTO,
help_text=mark_safe(_(
help_text=mark_safe_lazy(_(
"Controls how 'specific' pages objects are fetched and used when "
"rendering this menu. This value can be overidden by supplying a "
"different <code>use_specific</code> value to the <code>"
Expand Down Expand Up @@ -329,7 +332,7 @@ class AbstractFlatMenu(MenuWithMenuItems):
verbose_name=_('maximum levels'),
choices=app_settings.MAX_LEVELS_CHOICES,
default=1,
help_text=mark_safe(_(
help_text=mark_safe_lazy(_(
"The maximum number of levels to display when rendering this "
"menu. The value can be overidden by supplying a different "
"<code>max_levels</code> value to the <code>{% flat_menu %}"
Expand All @@ -340,7 +343,7 @@ class AbstractFlatMenu(MenuWithMenuItems):
verbose_name=_('specific page usage'),
choices=app_settings.USE_SPECIFIC_CHOICES,
default=app_settings.USE_SPECIFIC_AUTO,
help_text=mark_safe(_(
help_text=mark_safe_lazy(_(
"Controls how 'specific' pages objects are fetched and used when "
"rendering this menu. This value can be overidden by supplying a "
"different <code>use_specific</code> value to the <code>"
Expand Down

0 comments on commit 14f3816

Please sign in to comment.