fnp
/
koed-quiz.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Support for FQDN host names.
[koed-quiz.git]
/
apps
/
quiz
/
models.py
diff --git
a/apps/quiz/models.py
b/apps/quiz/models.py
index
8916ce9
..
0690f12
100644
(file)
--- 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]