Fix typo in request.site middleware deprecation warning (#6104)

pull/6109/head
LB (Ben Johnston) 2020-06-03 20:05:59 +10:00 zatwierdzone przez GitHub
rodzic eb9cff7bf3
commit e3e46e23b7
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -7,7 +7,7 @@ from wagtail.utils.deprecation import RemovedInWagtail211Warning
warnings.warn(
'wagtail.core.middleware.SiteMiddleware and the use of request.site is deprecated. '
'Please update your code to use Site.get_for_request(request) in place of request.site, '
'Please update your code to use Site.find_for_request(request) in place of request.site, '
'and remove wagtail.core.middleware.SiteMiddleware from MIDDLEWARES',
RemovedInWagtail211Warning
)