threadlocals

Classes

ThreadLocalsMiddleware

Stores the current authorized User object in thread locals for access in models (and elsewhere) without passing the user around as an argument.

Functions

intranet.middleware.threadlocals.request()[source]

Return the currently authorized User object.

Returns:

User object