隐藏这个gender字段:在form视图里添加invisible属性 attrs分为: readonly 只读required 必填invisible 隐藏 在context里添加隐藏_字段:'hide_gender' 升级模块后就可以了:gender字段被隐藏