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 14380,Form provided by modelform_factory fails when using fields attribute,Olivier Le Thanh Duong,nobody,"When creating a form using modelform_factory, setting the fields attribute and trying to display it, it fail with the following error : AttributeError: 'NoneType' object has no attribute 'label' Steps to reproduce : 1. run manage.py shell[[BR]] 2. import any model ex : from django.contrib.flatpages.models import FlatPage[[BR]] 3. from django.forms.models import modelform_factory[[BR]] 4. modelform_factory(FlatPage, fields='title')().as_p()[[BR]] (or as_ul or as_table)[[BR]] - > AttributeError: 'NoneType' object has no attribute 'label' When not using this attribute or when using the excludes attribute this works as expected Using django 1.2.3 here ",,closed,Forms,1.2,,invalid,,,Unreviewed,0,0,0,0,0,0