Ticket #20017: jython_lazy_fix.diff

File jython_lazy_fix.diff, 519 bytes (added by andreas@…, 2 years ago)
  • django/utils/functional.py

    diff --git a/django/utils/functional.py b/django/utils/functional.py
    index d740acf..647668d 100644
    a b def lazy(func, *resultclasses): 
    108108                    cls.__str__ = cls.__text_cast
    109109                else:
    110110                    cls.__unicode__ = cls.__text_cast
     111                    cls.__str__ = cls.__text_cast
    111112            elif cls._delegate_bytes:
    112113                if six.PY3:
    113114                    cls.__bytes__ = cls.__bytes_cast
Back to Top