Fix incorrect reference to MIDDLEWARES

pull/6363/head
Matt Westcott 2020-08-27 16:07:22 +01:00
rodzic 925d64730a
commit 4f42e61a2c
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -34,4 +34,4 @@ Upgrade considerations
SiteMiddleware moved to ``wagtail.contrib.legacy``
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The SiteMiddleware class (which provides the ``request.site`` property, and has been deprecated since Wagtail 2.9) has been moved to the ``wagtail.contrib.legacy`` namespace. On projects where this is still in use, the ``'wagtail.core.middleware.SiteMiddleware'`` entry in ``MIDDLEWARES`` should be changed to ``'wagtail.contrib.legacy.sitemiddleware.SiteMiddleware'``.
The SiteMiddleware class (which provides the ``request.site`` property, and has been deprecated since Wagtail 2.9) has been moved to the ``wagtail.contrib.legacy`` namespace. On projects where this is still in use, the ``'wagtail.core.middleware.SiteMiddleware'`` entry in ``MIDDLEWARE`` should be changed to ``'wagtail.contrib.legacy.sitemiddleware.SiteMiddleware'``.