Skip to content

Commit

Permalink
Fix error for gettext_lazy
Browse files Browse the repository at this point in the history
ugettext_lazy will soon be removed in favour of gettext_lazy.
See https://docs.djangoproject.com/en/3.0/releases/3.0/#id3
  • Loading branch information
Anto59290 authored and atodorov committed Apr 14, 2020
1 parent 231f3fb commit 7cfd7bf
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
7 changes: 7 additions & 0 deletions pylint_django/tests/input/func_noerror_gettext_lazy_format.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
"""
Checks that Pylint does not complain about django lazy proxy
when using gettext_lazy
"""
from django.utils.translation import gettext_lazy

gettext_lazy('{something}').format(something='lala')
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
def ugettext_lazy(_):
def gettext_lazy(_):
return ''


ugettext_lazy = gettext_lazy # pylint:disable=invalid-name

0 comments on commit 7cfd7bf

Please sign in to comment.