﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
23346	django.utils.functional.lazy picks the wrong method implementation	Gavin Wahl	nobody	"When a subclass of resultclasses is returned by the wrapped function, method implementaions are looked up on the base class (the one in resultclasses), not on the object actually returned.

{{{
#!python
    def test_lazy_base_class_override(self):
        """"""Test that lazy finds the correct (overridden) method implementation""""""

        class Base(object):
            def method(self):
                return 'Base'

        class Klazz(Base):
            def method(self):
                return 'Klazz'

        t = lazy(lambda: Klazz(), Base)()
        self.assertEqual(t.method(), 'Klazz')
}}}

In the current implementation, `Base.method` will be called, not `Klazz.method`."	Bug	closed	Core (Other)	1.6	Normal	fixed			Accepted	1	0	0	0	0	0
