Prior to v1.8, Django rendered all fields of the model if none of fields or exclude attributes were mentioned. Django 1.8 makes it compulsory to set either fields attribute or exclude attribute to indicate which fields in the model should be used. If both of these attributes are omitted, ImproperlyConfigured exception is raised. https://docs.djangoproject.com/en/1.8/topics/forms/modelforms/#selecting-the-fields-to-use
Prior to v1.8, Django rendered all fields of the model if none of
fields
orexclude
attributes were mentioned. Django 1.8 makes it compulsory to set eitherfields
attribute orexclude
attribute to indicate which fields in the model should be used. If both of these attributes are omitted,ImproperlyConfigured
exception is raised.https://docs.djangoproject.com/en/1.8/topics/forms/modelforms/#selecting-the-fields-to-use