diff --git a/ttadmin/users/views.py b/ttadmin/users/views.py index 49aa79a..4f4b5f4 100644 --- a/ttadmin/users/views.py +++ b/ttadmin/users/views.py @@ -23,6 +23,8 @@ class SignupView(FormView): key_type=form.cleaned_data.pop('pubkey_type')) t = Townie(**form.cleaned_data) + if not getattr(t, 'displayname'): + t.displayname = t.username t.set_unusable_password() t.save() pubkey.townie = t