Can I change Django's auth_user.username field to be 100 chars long without breaking anything?

前端 未结 7 1581
眼角桃花
眼角桃花 2021-02-06 05:31

Before somebody marks this question as a duplicate of this question Can django\'s auth_user.username be varchar(75)? How could that be done? or other such questions on SO, pleas

7条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-06 06:03

    If you change the database manually as well as the model accordingly then there should be no problem.

    You can also change back otherwise, and I would say make a backup just in case but I'm not sure its even necessary

提交回复
热议问题