mirror of
https://github.com/jazzband/django-auditlog.git
synced 2026-05-16 11:33:11 +00:00
8 lines
317 B
Python
8 lines
317 B
Python
class AuditlogMiddleware:
|
|
"""
|
|
Middleware to couple the request's user to log items. This is accomplished by currying the
|
|
signal receiver with the user from the request (or None if the user is not authenticated).
|
|
"""
|
|
|
|
def __init__(self, get_response=None):
|
|
self.get_response = get_response
|