1
0
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:
Aymeric Augustin
2013-01-30 20:28:16 +01:00
parent 47ddd6a408
commit 3f1a0c0040
7 changed files with 143 additions and 9 deletions

View File

@@ -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