8000 fix: Mark language and user middleware synchronous for ASGI (Backport… · django-cms/django-cms@cbdbc88 · GitHub
[go: up one dir, main page]

Skip to content

Commit cbdbc88

Browse files
author
Github Release Action
committed
fix: Mark language and user middleware synchronous for ASGI (Backport of #7986)
1 parent 02e9e48 commit cbdbc88

File tree

4 files changed

+6
-0
lines changed

4 files changed

+6
-0
lines changed

CHANGELOG.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Bug Fixes:
1010
* Inconsistent color codes for dark mode and `preferes-color-scheme: auto` (#7979) (46ff58321) -- Fabian Braun
1111
* Invalidate permissions cache if group assignment of user changes (ec05b6f2f) -- Fabian Braun
1212
* Accept legacy action names for page permission checks (#8021) (9a1e178) -- Fabian Braun
13+
* Mark language and user middleware synchronous for ASGI (#7985) -- John Bazik
1314

1415
Statistics:
1516
-----------

cms/middleware/language.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010

1111
class LanguageCookieMiddleware(MiddlewareMixin):
12+
async_capable = False
13+
1214
def __init__(self, get_response):
1315
super().__init__(get_response)
1416

cms/middleware/user.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77

88

99
class CurrentUserMiddleware(MiddlewareMixin):
10+
async_capable = False
11+
1012
def process_request(self, request):
1113
from cms.utils.permissions import set_current_user
1214

docs/upgrade/4.1.3.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ Bug Fixes:
3535
* Inconsistent color codes for dark mode and `preferes-color-scheme: auto` (#7979) (46ff58321) -- Fabian Braun
3636
* Invalidate permissions cache if group assignment of user changes (ec05b6f2f) -- Fabian Braun
3737
* Accept legacy action names for page permission checks (#8021) (9a1e178) -- Fabian Braun
38+
* Mark language and user middleware synchronous for ASGI (#7985) -- John Bazik
3839

3940

4041
Statistics:

0 commit comments

Comments
 (0)
0