﻿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
19831	django.utils.functional.lazy return __proxy__ object	Michał Dydecki	nobody	"There is a problem with lazy wrapper used in fe. django.core.context_processors in csrf function.
Let me show You an example:

''In [23]: def test():
    return ""test string""

In [24]: t = lazy(test, six.text_type)

In [25]: print t()
<django.utils.functional.__proxy__ object at 0x26b3c90>''

t() should return proper value from function test.

This situation cause a problem with setting csrftoken cookie. It's only possible when You are using function 
''_get_val''  without lazy wrapper.

"	Bug	closed	Core (Other)	1.5-rc-1	Normal	invalid	lazy		Unreviewed	0	0	0	0	0	0
