Skip to content

Commit b01b92c

Browse files
authored
Merge pull request #301 from open-craft/haikuginger/lazy_model_translation
Switch ugettext to ugettext_lazy in models.py
2 parents 15271ca + fb74441 commit b01b92c

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

AUTHORS.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ Authors
3939
- Lucas Wiman
4040
- Michael England
4141
- Gregory Bataille
42+
- Jesse Shapiro
4243

4344
Background
4445
==========

CHANGES.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
Changes
22
=======
33

4+
Unreleased
5+
----------
46
- Use get_queryset rather than model.objects in history_view. (gh-303)
7+
- Change ugettext calls in models.py to ugettext_lazy
58

69
1.9.0 (2017-06-11)
710
------------------

simple_history/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from django.utils import six
1212
from django.utils.encoding import python_2_unicode_compatible, smart_text
1313
from django.utils.timezone import now
14-
from django.utils.translation import string_concat, ugettext as _
14+
from django.utils.translation import string_concat, ugettext_lazy as _
1515

1616
from . import exceptions
1717
from .manager import HistoryDescriptor

0 commit comments

Comments
 (0)