#237 Prevent syntax warning

This commit is contained in:
Alex Root Junior 2020-01-01 16:47:21 +02:00
parent 23325e09e3
commit 84de4e95f6

View file

@ -95,7 +95,7 @@ class I18nMiddleware(BaseMiddleware):
locale = self.ctx_locale.get()
if locale not in self.locales:
if n is 1:
if n == 1:
return singular
return plural