From ec8ebdd7a74139751b5aadf84b95615e529e9980 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Fri, 26 Sep 2014 16:31:26 +0200 Subject: [PATCH] Support for FQDN host names. --- apps/quiz/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/quiz/models.py b/apps/quiz/models.py index 8916ce9..0690f12 100644 --- a/apps/quiz/models.py +++ b/apps/quiz/models.py @@ -20,7 +20,7 @@ class Quiz(Site): @classmethod def current(cls, request): - return cls.objects.get(domain=request.get_host()) + return cls.objects.get(domain=request.get_host().rstrip('.')) def start(self): return self.question_set.all()[0] -- 2.20.1