modelform整体 from django import forms from app01 import models import hashlib from django.core.exceptions import ValidationError # 定义Boostrap表单样式的类 class BootstrapForm(forms.ModelForm): def __init__(self, *args, **kwargs): super().__init__(*args, **kw