Curtis started a PR [0] that replaces the functionality of AuthenticationMiddleware.process_request():
request.user = SimpleLazyObject(lambda: get_user(request)) with this line in AuthConfig.ready(): HttpRequest.user = cached_property(get_user, 'user') Before finishing the patch, I'd like to get a few more eyeballs on it to make sure there aren't any downsides to this approach. Thanks! [0] https://github.com/django/django/pull/8568 -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com. To post to this group, send email to django-developers@googlegroups.com. Visit this group at https://groups.google.com/group/django-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/3f443ea4-8963-4609-8325-0c9464030d25%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.