make the middleware compatible with MIDDLEWARE setting (#49062)

This commit is contained in:
Emmanuel Cazenave 2020-11-26 11:08:05 +01:00
parent af27a1bc4b
commit c39e1471de
1 changed files with 2 additions and 1 deletions

View File

@ -1,7 +1,8 @@
from django.utils.deprecation import MiddlewareMixin
from django_journal import journal
class JournalMiddleware(object):
class JournalMiddleware(MiddlewareMixin):
'''Add record and error_record methods to the request object to log
current user and current REMOTE_ADRESS.