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.
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.
Asked: May 25 '11
Seen: 110 times
Last updated: May 25 '11
Copyright Askbot, 2010-2011. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.