Merge pull request #203 from Birdi7/fix-cache-lazy-gettext

Lazy_gettext in i18nMiddleware have enable_cache=False by default
This commit is contained in:
Alex Root Junior 2019-10-02 13:10:15 +03:00 committed by GitHub
commit d92a77dbe2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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