I need to increase the max username size in auth to exceed the 30 chars defined in the model. How can it be done? I' m not sure that just customizing the model is the right or safe way.
This answer here is an interesting approach: Can django's auth_user.username be varchar(75)? How could that be done?
A small app that overrides the max_length attribute on the User model, but note your DB column needs to be modified if the tables are not being syncdb
ed
I personally use a trimmed hash as my username which would notify me if there was ever a super unlikely collision, with the subject "You just won the lottery!"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With