﻿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
10949	In forms.ModelForm Meta.fields needs to be a list if only single field is defined	casseen	nobody	"The following is not working! It returns a broken form if instantiated:


{{{
class ExampleForm(forms.ModelForm):
    class Meta:
        model = ExampleModel
        fields = ('single_field')
}}}


It is working if Meta.fields is set to a list:



{{{
class ExampleForm(forms.ModelForm):
    class Meta:
        model = ExampleModel
        fields = ['single_field']
}}}

If this is intended behaviour it should be documented! But I guess I should work in both ways. This behaviour is introduced with r10062."		closed	Forms	dev		invalid			Unreviewed	0	0	0	0	0	0
