handle default displayname
parent
8b20f0764d
commit
6d38a4190f
|
@ -23,6 +23,8 @@ class SignupView(FormView):
|
||||||
key_type=form.cleaned_data.pop('pubkey_type'))
|
key_type=form.cleaned_data.pop('pubkey_type'))
|
||||||
|
|
||||||
t = Townie(**form.cleaned_data)
|
t = Townie(**form.cleaned_data)
|
||||||
|
if not getattr(t, 'displayname'):
|
||||||
|
t.displayname = t.username
|
||||||
t.set_unusable_password()
|
t.set_unusable_password()
|
||||||
t.save()
|
t.save()
|
||||||
pubkey.townie = t
|
pubkey.townie = t
|
||||||
|
|
Loading…
Reference in New Issue