Fixed #7289 -- Made ModelForms behave like Forms in the sense that Field
commitc5181eefa4e8c89358c3f78c3d1b6dc248d6667c
authormtredinnick <mtredinnick@bcc190cf-cafb-0310-a4f2-bffc1f526a37>
Wed, 27 Aug 2008 08:05:59 +0000 (27 08:05 +0000)
committermtredinnick <mtredinnick@bcc190cf-cafb-0310-a4f2-bffc1f526a37>
Wed, 27 Aug 2008 08:05:59 +0000 (27 08:05 +0000)
treec265d6a1d2cde8fde082be7f13a2d87bc369fdff
parent221da8fd492287799d37a596c3cadbb1be979ac0
Fixed #7289 -- Made ModelForms behave like Forms in the sense that Field
objects don't appear as attributes on the final form instance. They continue to
appear as elements of the form_instance.fields mapping.

If you were relying on ModelForms having fields as attributes, then this will
be slightly backwards incompatible. However, normal template usage will see no
change at all.

Patch from Daniel Pope.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@8618 bcc190cf-cafb-0310-a4f2-bffc1f526a37
django/forms/models.py