Form组件的验证流程及扩展(钩子) 常用的form class TestForm(Form): t1 = fields.CharField( widget=widgets.Textarea # 输入框 ) t2 = fields.CharField( widget=widgets.CheckboxInput # 单选框 ) t3 = fields.MultipleChoiceField( choices=[(1, '篮球'), (2, '足球')], # 多选框的内容 widget=widge…