dj22: use MiddlewareMixin
This commit is contained in:
parent
d101944f7d
commit
fe5b5fc47c
|
@ -1,10 +1,11 @@
|
|||
from django.conf import settings
|
||||
from django.utils.six.moves.urllib import parse as urlparse
|
||||
from django.utils.deprecation import MiddlewareMixin
|
||||
|
||||
from authentic2.utils import same_domain, redirect
|
||||
|
||||
|
||||
class CUTMiddleware(object):
|
||||
class CUTMiddleware(MiddlewareMixin):
|
||||
'''Extract requesting domain from URL and set value on request and in session.
|
||||
|
||||
Domains extracted from ?next=<url> of ?redirect_uri=<url> parameters are matched against the
|
||||
|
|
Loading…
Reference in New Issue