summaryrefslogtreecommitdiff
path: root/meetingtools
diff options
context:
space:
mode:
authorJohan Lundberg <lundberg@nordu.net>2014-10-22 16:55:11 +0200
committerJohan Lundberg <lundberg@nordu.net>2014-10-22 16:55:11 +0200
commit52c48f15214d3c2c1b228052d6ce60a04e86e4e0 (patch)
treeb6c237af84c188a12b4c4828c7b78b6f5d5881a9 /meetingtools
parentbbb6962f43bf5d020fbc1ae41fbee2f0c9aff199 (diff)
Remove semicolon part from domains.
Diffstat (limited to 'meetingtools')
-rw-r--r--meetingtools/apps/content/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/meetingtools/apps/content/models.py b/meetingtools/apps/content/models.py
index a37e5fd..8c7f2fc 100644
--- a/meetingtools/apps/content/models.py
+++ b/meetingtools/apps/content/models.py
@@ -61,7 +61,7 @@ class Content(models.Model):
if not owner:
owner = get_owner_by_folder(api, acc, sco_element)
try:
- domain = owner['login'].split('@')[1]
+ domain = owner['login'].split('@')[1].split(';')[0]
user, created = User.objects.get_or_create(username=owner['login'])
if created:
user.set_unusable_password()