#12060: Auth Context Processor returns user as a Lazy Object, which breaks
things
----------------------------+-----------------------------------------------
Reporter: ericholscher | Owner: nobody
Status: new | Milestone:
Component: Authentication | Version: 1.1
Keywords: | Stage: Unreviewed
Has_patch: 0 |
----------------------------+-----------------------------------------------
With the addition in r11621, when a template checks the type or equality
of request.user given from the auth context processor, you used to get:
{{{
ipdb> type(response.context['user'])
Out[0]: <class 'django.utils.functional.SimpleLazyObject'>
}}}
Previously, this returned an auth.User object.
{{{
<class 'django.contrib.auth.models.User'>
}}}
Attached is a test that fails with the current trunk. It passes with the
current test structure and pre-r11621 auth context_processor.
--
Ticket URL: <http://code.djangoproject.com/ticket/12060>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---