Browse Source

might work now lol

main
Julia Luna 2 years ago
parent
commit
d94a071545
Signed by: xenua
GPG Key ID: 6A0C04FA9A7D7582
  1. 2
      scopedsites/middleware.py
  2. 2
      setup.py

2
scopedsites/middleware.py

@ -13,6 +13,8 @@ class DomainScopeMiddleware(MiddlewareMixin): @@ -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):
return super().__call__(request)

2
setup.py

@ -3,7 +3,7 @@ from setuptools import setup @@ -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=[

Loading…
Cancel
Save