标签:表单 dmi mob 继承 forms admin elf 实现 for
1.在app下面添加一个文件 forms.py
2.主要在于继承modelform
class UserAskForm(forms.ModelForm):
class Meta:
model = UserAsk
fields = [‘name‘, ‘mobile‘, ‘course_name‘]
标签:表单 dmi mob 继承 forms admin elf 实现 for
原文地址:http://www.cnblogs.com/chenyang13677/p/7773882.html