diff --git a/django/utils/functional.py b/django/utils/functional.py index 1592828c7f..cab74886d3 100644 --- a/django/utils/functional.py +++ b/django/utils/functional.py @@ -147,6 +147,11 @@ def lazy(func, *resultclasses): else: return func(*self.__args, **self.__kw) + def __ne__(self, other): + if isinstance(other, Promise): + other = other.__cast() + return self.__cast() != other + def __eq__(self, other): if isinstance(other, Promise): other = other.__cast()