From 52c48f15214d3c2c1b228052d6ce60a04e86e4e0 Mon Sep 17 00:00:00 2001 From: Johan Lundberg Date: Wed, 22 Oct 2014 16:55:11 +0200 Subject: Remove semicolon part from domains. --- meetingtools/apps/content/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meetingtools') 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() -- cgit v1.1