New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed #31371 -- Increased User.first_name max_length to 150 characters. #12581
Conversation
The 30 character first name limit has been reported in another open source project I maintain (which uses Django), Ansible AWX: ansible/awx#6281 This PR updates the field to match the (expanded) length of the last name field. |
72ff018
to
2211263
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @ryanpetrello.
Please change the migration file name:
0012_alter_user_last_name_max_length.py
-> 0012_alter_user_first_name_max_length.py
Please change the user model first_name field doc. Please add a .. versionchanged::
as well.
2211263
to
9daf235
Compare
Thanks @hramezani; feedback addressed. |
@ryanpetrello Thanks 👍 I added some docs. Welcome aboard ⛵ |
Changed the way DjangoModelFactory is imported as per FactoryBoy/factory_boy@43f557d Also updated user migrations as per django/django#12581
Increases the max_length of first_name in django.contrib.auth to 150 characters to facilitate longer first names.
Fixes ticket-31371