Middleware#

class abstract.middleware.expose_user.InjectUserObj(get_response)[source]#

Middleware to inject the current user into the Base Model Class.

This middleware retrieves the current authenticated user from the request and injects it into the Base Model Class for tracking user interactions.

Args:

get_response (callable): The next middleware in the chain or the view.