diff options
author | Étienne Loks <etienne.loks@proxience.com> | 2015-12-14 23:22:18 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@proxience.com> | 2015-12-14 23:22:18 +0100 |
commit | 736e221ca0afb6fb1aedc03d669419df28a541c7 (patch) | |
tree | 33e2b3470a8cee12975fec1cbc57f1f82bd9802d | |
parent | 7c5d26cbf65679aea9bb6ca3af8290e4033dd953 (diff) | |
download | Ishtar-736e221ca0afb6fb1aedc03d669419df28a541c7.tar.bz2 Ishtar-736e221ca0afb6fb1aedc03d669419df28a541c7.zip |
Fix account creation for person with empty name and surname
-rw-r--r-- | ishtar_common/wizards.py | 3 |
1 files changed, 2 insertions, 1 deletions
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']: |