Add display_name to user
The User model gain a non-nullable display_name attribute, initialized in the migration to the first part of the email:
-
bastien.abadie@gmail.comshould becomeBastien Abadie - quick & dirty :
re.sub('[^\w]', ' ', email[:email.index('@')]).title()
Make sure the user creation still works:
./manage.py createsuperuser- adding a user through admin
- user signup
These 3 actions should require setting a display name