Ask Your Question

user creation "screen name" vs "username" in admin page

asked 2011-05-25 03:57:37 -0600

Samuel's avatar

When a user creates his local account, he can fill his screen name with spaces. In the administration page, the username must contain only letters, numbers and underscores. So the admisitrator has to modify the username to submit another modification to his profile.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2011-05-25 15:09:09 -0600

Evgeny's avatar

updated 2011-05-25 15:37:57 -0600

Yes, just tested this. It is impossible to edit profile from django admin panel when user's user name has space.

Django's auth app does not allow spaces in the user name (it is a required field, equivalent to login name).

I think the solution is to forbid space in the username field and stick to the format for the user name that django expects.

The display name may be combined from first and last names, and first and last names would be accessible to edit from the user profile page.

There will be a side effect with this change - all users whose names do not agree with the django's convention will be automatically renamed, and they should also be informed of the change.

A management command will be required to auto-rename users and send them notifications of the change.

edit flag offensive delete link more


I agree with this proposal. So the user will be asked to fill the last and first name fields on the creation account page. Will the username be auto-generated?
Samuel's avatar Samuel  ( 2011-05-31 09:44:46 -0600 )edit
FYI: I have solved the problem on my side by strenghtening the ldap connectivity : the fields screename & email are automatically filled at account creation and the user cannot update them.
Samuel's avatar Samuel  ( 2011-08-01 04:09:34 -0600 )edit
Is it available on github - could you give me a url if I can merge your changes?
Evgeny's avatar Evgeny  ( 2011-08-01 08:56:49 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2011-05-25 03:57:37 -0600

Seen: 999 times

Last updated: May 25 '11