Closed jeacaveo closed 5 years ago
This fix is really helpful. Newer middleware implementations don't support the old-style MIDDLEWARE_CLASSES
setting anymore so people won't be able to use other middlewares together with django-audit-log
. For example, we have a project where we can't upgrade django-simple-history
to version 2.0.
Is there a way to move this forward and get the fix released? Can I help?
Any news on this one?
This was already applied to master here: https://github.com/vvangelovski/django-audit-log/commit/cf464319fbfec3fdbb252a82746f0db571d1c3ca
So this PR can be closed. I'll make a forked release and link to it here.
According to this links, middleware classes must extend
django.utils.deprecation.MiddlewareMixin
instead ofobject
to avoid compatibility issues betweenMIDDLEWARE
andMIDDLEWARE_CLASSES
configurations:This PR includes changes that allow middleware classes to be configured under
MIDDLEWARE
.There's a deprecation warning when using `MIDDLEWARE_CLASSES':