From e2913da1bbbc8b840409addae52ef28743d1d535 Mon Sep 17 00:00:00 2001 From: Hasan Ramezani Date: Fri, 28 May 2021 22:19:48 +0200 Subject: [PATCH] Replace MIDDLEWARE_CLASSES with MIDDLEWARE in docs. --- docs/source/installation.rst | 2 +- docs/source/usage.rst | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/source/installation.rst b/docs/source/installation.rst index 1467bcc..4b07966 100644 --- a/docs/source/installation.rst +++ b/docs/source/installation.rst @@ -24,5 +24,5 @@ To use Auditlog in your application, just add ``'auditlog'`` to your project's ` ``manage.py migrate`` to create/upgrade the necessary database structure. If you want Auditlog to automatically set the actor for log entries you also need to enable the middleware by adding -``'auditlog.middleware.AuditlogMiddleware'`` to your ``MIDDLEWARE_CLASSES`` setting. Please check :doc:`usage` for more +``'auditlog.middleware.AuditlogMiddleware'`` to your ``MIDDLEWARE`` setting. Please check :doc:`usage` for more information. diff --git a/docs/source/usage.rst b/docs/source/usage.rst index b40f296..101c687 100644 --- a/docs/source/usage.rst +++ b/docs/source/usage.rst @@ -83,10 +83,10 @@ When using automatic logging, the actor is empty by default. However, auditlog c request automatically. This does not need any custom code, adding a middleware class is enough. When an actor is logged the remote address of that actor will be logged as well. -To enable the automatic logging of the actors, simply add the following to your ``MIDDLEWARE_CLASSES`` setting in your +To enable the automatic logging of the actors, simply add the following to your ``MIDDLEWARE`` setting in your project's configuration file:: - MIDDLEWARE_CLASSES = ( + MIDDLEWARE = ( # Request altering middleware, e.g., Django's default middleware classes 'auditlog.middleware.AuditlogMiddleware', # Other middleware