diff --git a/django/utils/functional.py b/django/utils/functional.py index 4220cbc4b6..be5fac23ad 100644 --- a/django/utils/functional.py +++ b/django/utils/functional.py @@ -126,8 +126,6 @@ def lazy(func, *resultclasses): "Cannot call lazy() with both bytes and text return types." ) - if cls._delegate_bytes: - cls.__bytes__ = cls.__bytes_cast @classmethod def __promise__(cls, method_name): @@ -140,9 +138,6 @@ def lazy(func, *resultclasses): return __wrapper__ - def __bytes_cast(self): - return bytes(func(*self.__args, **self.__kw)) - def __cast(self): return func(*self.__args, **self.__kw)