From ec839d583fff6b279c7cdec2fdf87762f81f9aa5 Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Tue, 2 Oct 2012 22:23:54 +0200 Subject: - bootstrap - cleanup - bugfixes --- src/meetingtools/apps/cluster/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/meetingtools/apps/cluster') diff --git a/src/meetingtools/apps/cluster/models.py b/src/meetingtools/apps/cluster/models.py index 7b59771..3c65d57 100644 --- a/src/meetingtools/apps/cluster/models.py +++ b/src/meetingtools/apps/cluster/models.py @@ -30,6 +30,6 @@ def acc_for_user(user): domain = "nordu.net" # testing with local accts only for acc in ACCluster.objects.all(): for regex in acc.domain_match.split(): - if re.match(regex,domain): + if re.match(regex.strip(),domain): return acc - raise Exception,"I don't know which cluster you belong to... (%s)" % user.username \ No newline at end of file + raise Exception,"I don't know which cluster you belong to... (%s)" % user.username -- cgit v1.1