Before anyone marks this question as a duplicate of this question Can django auth_user.username be varchar (75)? How can I do that? or other similar questions on SO, please read this question. The question I asked poses exactly this question, but, unfortunately, the answers do not affect the question that was asked.
Can I change the auth_user.username field to 100 characters by doing the following:
- Run the ALTER table in the database for the username field
- Change max_length here:
username = models.CharField(_('username'), max_length=30, unique=True, help_text=_("Required. 30 characters or fewer. Letters, numbers and @/./+/-/_ characters"))
Will it really break anything in Django if I do this?
To make this change when I upgrade Django to a higher version, this is not a problem. I also do not look at the use of other authentication methods. I just want to know if I will break something if I do this.
Arpit rai
source share