﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
25679	ModelForm.Meta.fields and exclude are not honoured for custom fields	Tino de Bruijn	nobody	"[https://docs.djangoproject.com/en/1.8/topics/forms/modelforms/#selecting-the-fields-to-use Selecting fields to use] states that only form fields that are listed in `Meta.fields` or are not listed in `Meta.exclude` are used and ""Any fields not included in a form by the above logic will not be set by the form’s save() method."".

But when I add a custom field, it is displayed and saved even when not included in fields or when excluded. Eg.:

{{{
class TestForm(forms.ModelForm):
    conditional_field = forms.TextField()

    class Meta:
        model = MyModel
        exclude = ('conditional_field',)
}}}

Still displays ""conditional_field"".

The reason I wanted to use this, is conditionally toggle the field in `__init__`. (Even if that is not the correct way to approach this, it still is unexpected behaviour)
"	Bug	closed	Forms	dev	Normal	invalid	modelform		Unreviewed	0	0	0	1	0	0
