mirror of
https://github.com/django/django.git
synced 2025-10-24 22:26:08 +00:00
Fixed #29772 -- Made LazyObject proxy __lt__() and __gt__().
This commit is contained in:
@@ -304,6 +304,8 @@ class LazyObject:
|
||||
# care about this (especially in equality tests)
|
||||
__class__ = property(new_method_proxy(operator.attrgetter("__class__")))
|
||||
__eq__ = new_method_proxy(operator.eq)
|
||||
__lt__ = new_method_proxy(operator.lt)
|
||||
__gt__ = new_method_proxy(operator.gt)
|
||||
__ne__ = new_method_proxy(operator.ne)
|
||||
__hash__ = new_method_proxy(hash)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user