Projet

Général

Profil

0002-make-the-middleware-compatible-with-MIDDLEWARE-setti.patch

Emmanuel Cazenave, 02 décembre 2020 17:46

Télécharger (833 octets)

Voir les différences:

Subject: [PATCH 2/3] make the middleware compatible with MIDDLEWARE setting
 (#49062)

 django_journal/middleware.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
django_journal/middleware.py
1
from django.utils.deprecation import MiddlewareMixin
1 2
from django_journal import journal
2 3

  
3 4

  
4
class JournalMiddleware(object):
5
class JournalMiddleware(MiddlewareMixin):
5 6
    '''Add record and error_record methods to the request object to log
6 7
       current user and current REMOTE_ADRESS.
7 8

  
8
-