Skip to content

Commit

Permalink
short_description should be translated lazily
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiask committed Feb 21, 2016
1 parent 602ce9a commit cfac588
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mptt/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from django.templatetags.static import static
from django.utils.encoding import force_text
from django.utils.html import format_html, mark_safe
from django.utils.translation import ugettext as _
from django.utils.translation import ugettext as _, ugettext_lazy

from mptt.exceptions import InvalidMove
from mptt.forms import MPTTAdminForm, TreeNodeChoiceField
Expand Down Expand Up @@ -172,7 +172,7 @@ def indented_title(self, item):
item._mpttfield('level') * self.mptt_level_indent,
item,
)
indented_title.short_description = _('title')
indented_title.short_description = ugettext_lazy('title')

def changelist_view(self, request, *args, **kwargs):
if request.is_ajax() and request.POST.get('cmd') == 'move_node':
Expand Down

0 comments on commit cfac588

Please sign in to comment.