Replace MIDDLEWARE_CLASSES with MIDDLEWARE in docs.

This commit is contained in:
Hasan Ramezani 2021-05-28 22:19:48 +02:00 committed by Jannis Leidel
parent 1a437f4e40
commit e2913da1bb
2 changed files with 3 additions and 3 deletions

View file

@ -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.

View file

@ -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