mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #26716 -- Made CurrentSiteMiddleware compatible with new-style middleware.
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
from django.utils.deprecation import MiddlewareMixin
|
||||
|
||||
from .shortcuts import get_current_site
|
||||
|
||||
|
||||
class CurrentSiteMiddleware(object):
|
||||
class CurrentSiteMiddleware(MiddlewareMixin):
|
||||
"""
|
||||
Middleware that sets `site` attribute to request object.
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user