@ -13,6 +13,8 @@ class DomainScopeMiddleware(MiddlewareMixin):
return await super().__acall__(request)
def __call__(self, request):
if self._is_coroutine:
return super().__call__(request)
d = Domain.get_from_request(request)
with scope(domain=d):
@ -3,7 +3,7 @@ from setuptools import setup
setup(
name="django_scopedsites",
packages=["scopedsites", "scopedsites.migrations"],
version="0.1.8",
version="0.1.9",
description="django_scopes x django.contrib.sites",
python_requires=">=3.6",
install_requires=[