(self, get_response)
Audit middleware needs to be enabled on site after the login/user info
        is instantiated on the request object.

        Auditing is controlled by three settings:
        - AUDIT_ALL_VIEWS: When true other settings are ignored.
        - AUDIT_VIEWS: List of fully qualified view names to audit.
        - AUDIT_MODULES: List of fully qualified module names to audit.
        - AUDIT_ADMIN_VIEWS: Audit admin views in `django.contrib.admin`
            and `reversion.admin` modules
Audit middleware needs to be enabled on site after the login/user info
        is instantiated on the request object.
Audit middleware needs to be enabled on site after the login / user info is instantiated on the request object .
def __init__(self, get_response):
        """
        Audit middleware needs to be enabled on site after the login/user info
        is instantiated on the request object.

        Auditing is controlled by three settings:
        - AUDIT_ALL_VIEWS: When true other settings are ignored.
        - AUDIT_VIEWS: List of fully qualified view names to audit.
        - AUDIT_MODULES: List of fully qualified module names to audit.
        - AUDIT_ADMIN_VIEWS: Audit admin views in `django.contrib.admin`
            and `reversion.admin` modules
        """
        self.get_response = get_response
        self.active = any(getattr(settings, name, False) for name in [
            "AUDIT_ALL_VIEWS", "AUDIT_VIEWS", "AUDIT_MODULES", "AUDIT_ADMIN_VIEWS"
        ])
        self.audit_modules = tuple(settings.AUDIT_MODULES)
        self.audit_views = set(settings.AUDIT_VIEWS)
def __init__ ( self , get_response ) : self . get_response = get_response self . active = any ( getattr ( settings , name , False ) for name in [ "AUDIT_ALL_VIEWS" , "AUDIT_VIEWS" , "AUDIT_MODULES" , "AUDIT_ADMIN_VIEWS" ] ) self . audit_modules = tuple ( settings . AUDIT_MODULES ) self . audit_views = set ( settings . AUDIT_VIEWS )