|
|
@ -13,6 +13,8 @@ class DomainScopeMiddleware(MiddlewareMixin): |
|
|
|
return await super().__acall__(request) |
|
|
|
return await super().__acall__(request) |
|
|
|
|
|
|
|
|
|
|
|
def __call__(self, request): |
|
|
|
def __call__(self, request): |
|
|
|
|
|
|
|
if self._is_coroutine: |
|
|
|
|
|
|
|
return super().__call__(request) |
|
|
|
d = Domain.get_from_request(request) |
|
|
|
d = Domain.get_from_request(request) |
|
|
|
with scope(domain=d): |
|
|
|
with scope(domain=d): |
|
|
|
return super().__call__(request) |
|
|
|
return super().__call__(request) |
|
|
|