Skip to content

Commit a63bd72

Browse files
committed
Fix error for gettext_lazy
ugettext_lazy will soon be removed in favour of gettext_lazy. See https://docs.djangoproject.com/en/3.0/releases/3.0/#id3
1 parent 231f3fb commit a63bd72

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
"""
2+
Checks that Pylint does not complain about django lazy proxy
3+
when using gettext_lazy
4+
"""
5+
from django.utils.translation import gettext_lazy
6+
7+
gettext_lazy('{something}').format(something='lala')
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1-
def ugettext_lazy(_):
1+
def gettext_lazy(_):
22
return ''
3+
4+
5+
ugettext_lazy = gettext_lazy # pylint:disable=invalid-name

0 commit comments

Comments
 (0)