views.generic.edit.ModelFormMixin.fields

fields

A list of names of fields. This is interpreted the same way as the Meta.fields attribute of ModelForm.

This is a required attribute if you are generating the form class automatically (e.g. using model). Omitting this attribute will result in an ImproperlyConfigured exception.

doc_Django
2016-10-09 18:41:08
Comments
Leave a Comment

Please login to continue.