Commit 9ed63873 authored by Daniel Klaffenbach's avatar Daniel Klaffenbach 🐍

model_journal.middleware: Add support for Django 1.11

parent 76bd6b4a
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.utils.deprecation import MiddlewareMixin
from . import _thread_local_storage
class ModelJournalMiddleware(object):
class ModelJournalMiddleware(MiddlewareMixin):
def process_request(self, request):
username = ''
if hasattr(request, 'user') and request.user.is_authenticated():
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment