Thank you. So LazyUser is there to cache the user instance.
In LazyUser(object), the user instance is stored in request._cached_user In AuthenticationMiddleware(object), the user instance is stored in request.__class__.user But I don't see request.user being assigned at all. Where does that happen? So what are the differences between the following three: request._cached_user request.__class__.user request.user Why have 3 different user attributes? I'm confused. Thanks. On May 10, 3:39 pm, Shawn Milochik <sh...@milochik.com> wrote: > The User model is in django.contrib.auth, not in the core of Django. > > request.user is dealt with in the middleware that comes with the auth > module. > > http://code.djangoproject.com/browser/django/trunk/django/contrib/aut... -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.