Ticket #23782: #23782-lazy_with_contains.diff

File #23782-lazy_with_contains.diff, 438 bytes (added by German M. Bravo, 10 years ago)
  • django/utils/functional.py

    diff --git a/django/utils/functional.py b/django/utils/functional.py
    index 6c63999..1ba1988 100644
    a b class LazyObject(object):  
    270270    def __delitem__(self, key):
    271271        del self[key]
    272272
     273    @new_method_proxy
     274    def __contains__(self, key):
     275        return self.__contains__(key)
     276
    273277
    274278# Workaround for http://bugs.python.org/issue12370
    275279_super = super
Back to Top