@ -10,6 +10,9 @@ class Domain(models.Model):
unique=True,
)
def __str__(self):
return self.fqdn
@classmethod
def get_from_request(cls, request):
return get_object_or_404(cls, fqdn__iexact=request.META.get('HTTP_HOST', ''))
@ -3,7 +3,7 @@ from setuptools import setup
setup(
name="django_scopedsites",
packages=["scopedsites", "scopedsites.migrations"],
version="0.1.4",
version="0.1.5",
description="django_scopes x django.contrib.sites",
python_requires=">=3.6",
install_requires=[