Lazy_gettext in i18nMiddleware have enable_cache=False by default

This commit is contained in:
birdi 2019-09-01 00:17:16 +03:00
parent 58a8f43e2c
commit 546b852747

View file

@ -105,7 +105,7 @@ class I18nMiddleware(BaseMiddleware):
return translator.gettext(singular)
return translator.ngettext(singular, plural, n)
def lazy_gettext(self, singular, plural=None, n=1, locale=None, enable_cache=True) -> LazyProxy:
def lazy_gettext(self, singular, plural=None, n=1, locale=None, enable_cache=False) -> LazyProxy:
"""
Lazy get text