On 24 Lis, 10:05, Piotr Czachur <[email protected]> wrote: > Hi! > > Why in auth middleware, user is assigned to request.__class__.user, > but in auth context processor it's read from request.user ? Isn't it > inconsistent?
I've found answer here: answer http://stackoverflow.com/questions/766733/some-internals-of-django-auth-middleware Q: Please avdise me why such a form request._ class _.user = LazyUser () used? Why not just request.user = LazyUser() ? A: LazyUser is descriptor-class. According to documentation it can be only class attribute not instance one. -- You received this message because you are subscribed to the Google Groups "Django users" 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-users?hl=en.

