mirror of
https://github.com/django/django.git
synced 2025-09-18 00:10:22 +00:00
Fixed #19160 -- Made lazy plural translations usable.
Many thanks to Alexey Boriskin, Claude Paroz and Julien Phalip.
This commit is contained in:
parent
47ddd6a408
commit
3f1a0c0040
7 changed files with 143 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue