📜  django 模型形式 - Python 代码示例

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

代码示例1
class YourForm(ModelForm):
    class Meta:
        model = YourModel
        fields = ['pub_date', 'headline', 'content', 'reporter']