Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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

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.

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.