How to edit UserCreationForm password help text?

 ̄綄美尐妖づ 提交于 2020-07-21 03:24:32

问题


When I create a registration form that inherits from UserCreationForm, the text "Your password can't be too similar to your other personal information. Your password must contain at least 8 characters. Your password can't be a commonly used password. Your password can't be entirely numeric." appears under the password input fields and takes up quite a bit of space. Is there a way I can remove this?

I know the username help text can be removed with:

 help_texts = {
        'username': None
    }

but

help_texts = {
        'password1': None,
        'password2': None,
    }

does not work.

来源:https://stackoverflow.com/questions/46945449/how-to-edit-usercreationform-password-help-text

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!