From 736e221ca0afb6fb1aedc03d669419df28a541c7 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 14 Dec 2015 23:22:18 +0100 Subject: Fix account creation for person with empty name and surname --- ishtar_common/wizards.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ishtar_common') diff --git a/ishtar_common/wizards.py b/ishtar_common/wizards.py index 29496d21b..d00766978 100644 --- a/ishtar_common/wizards.py +++ b/ishtar_common/wizards.py @@ -1157,7 +1157,8 @@ class AccountWizard(Wizard): now = datetime.datetime.now() account = models.IshtarUser( person=person, username=dct['username'], email=dct['email'], - first_name=person.surname, last_name=person.name, + first_name=person.surname or '***', + last_name=person.name or '***', is_staff=False, is_active=True, is_superuser=False, last_login=now, date_joined=now) if dct['password']: -- cgit v1.2.3