📜  从模型形式的花药模型中获取字段 - 无论代码示例

📅  最后修改于: 2022-03-11 14:59:20.734000             🧑  作者: Mango

代码示例3
class CompanyForm(forms.ModelForm):
    class Meta:
        fields = [...]
        model = Company

class AccountForm(forms.ModelForm):
    class Meta:
        fields = [...]
        model = Account