summaryrefslogtreecommitdiff
path: root/ishtar_common/wizards.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2017-02-17 16:09:34 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2017-02-17 16:09:34 +0100
commite8b34109211c0fa5b580e0bd6112f82fa60a360c (patch)
tree412d1a4aa99c429d4de3a599e6c5f97c2fbbe141 /ishtar_common/wizards.py
parent311c3d5245f46681529d96652efeaa1c9f6a48bf (diff)
downloadIshtar-e8b34109211c0fa5b580e0bd6112f82fa60a360c.tar.bz2
Ishtar-e8b34109211c0fa5b580e0bd6112f82fa60a360c.zip
Accounts: initialize new account with default username extract from raw name
Diffstat (limited to 'ishtar_common/wizards.py')
-rw-r--r--ishtar_common/wizards.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/ishtar_common/wizards.py b/ishtar_common/wizards.py
index 5105418a5..c2cd54d03 100644
--- a/ishtar_common/wizards.py
+++ b/ishtar_common/wizards.py
@@ -1343,6 +1343,12 @@ class AccountWizard(Wizard):
context_instance=RequestContext(self.request))
return res
+ def get_form_kwargs(self, step=None):
+ kwargs = super(AccountWizard, self).get_form_kwargs(step)
+ if step == 'account-account_management':
+ kwargs['person'] = self.get_current_object()
+ return kwargs
+
def get_form(self, step=None, data=None, files=None):
"""
Display the "Send email" field if necessary