Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-Sichkar authored and jieter committed May 15, 2017
1 parent 4e22485 commit 414e660
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions django_tables2/templatetags/django_tables2.py
Expand Up @@ -219,6 +219,7 @@ def title(value):
from django.utils.functional import keep_lazy_text
title = keep_lazy_text(title)
except ImportError:
# to keep backward (Django < 1.10) compatibility
from django.utils.functional import lazy
title = lazy(title, six.text_type)

Expand Down
2 changes: 1 addition & 1 deletion tests/test_models.py
Expand Up @@ -166,7 +166,7 @@ class Meta:
table = PersonTable(Person.objects.all())
assert type(table.columns['trans_test_lazy'].verbose_name) is not six.text_type
with translation_override('ua'):
assert u'Тест Ленивого Перекладу' == table.columns['trans_test_lazy'].verbose_name
assert 'Тест Ленивого Перекладу' == table.columns['trans_test_lazy'].verbose_name


def test_data_verbose_name():
Expand Down

0 comments on commit 414e660

Please sign in to comment.