From e6900b8128fdf9c4a1b5b9be035b9c105fca17a1 Mon Sep 17 00:00:00 2001 From: Jan Szejko Date: Fri, 14 Oct 2016 16:54:31 +0200 Subject: [PATCH] wlem keys fix --- wtem/management/commands/wlem_generate_keys.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wtem/management/commands/wlem_generate_keys.py b/wtem/management/commands/wlem_generate_keys.py index 3fbf107..1e7f558 100644 --- a/wtem/management/commands/wlem_generate_keys.py +++ b/wtem/management/commands/wlem_generate_keys.py @@ -17,7 +17,7 @@ class Command(BaseCommand): for wlem_contact in query: if not Submission.objects.filter(email=wlem_contact.contact).exists(): - first_name, last_name = wlem_contact.body['nazwisko'].split(' ') + first_name, last_name = wlem_contact.body['nazwisko'].split() args = { 'email': wlem_contact.contact, 'first_name': first_name, -- 2.20.1