0002-make-the-middleware-compatible-with-MIDDLEWARE-setti.patch
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 |
- |