mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #19160 -- Made lazy plural translations usable.
Many thanks to Alexey Boriskin, Claude Paroz and Julien Phalip.
This commit is contained in:
@@ -157,8 +157,7 @@ def lazy(func, *resultclasses):
|
||||
return bytes(self) % rhs
|
||||
elif self._delegate_text:
|
||||
return six.text_type(self) % rhs
|
||||
else:
|
||||
raise AssertionError('__mod__ not supported for non-string types')
|
||||
return self.__cast() % rhs
|
||||
|
||||
def __deepcopy__(self, memo):
|
||||
# Instances of this class are effectively immutable. It's just a
|
||||
|
||||
Reference in New Issue
Block a user