Fixed #6337. Refs #3632 -- Fixed ModelForms subclassing, to the extent that it can...
commita47a0d24ef1222a7e6216861c1a70d7aac2c13e2
authormtredinnick <mtredinnick@bcc190cf-cafb-0310-a4f2-bffc1f526a37>
Thu, 14 Feb 2008 12:56:49 +0000 (14 12:56 +0000)
committermtredinnick <mtredinnick@bcc190cf-cafb-0310-a4f2-bffc1f526a37>
Thu, 14 Feb 2008 12:56:49 +0000 (14 12:56 +0000)
tree67225fd54f15c13c0a014759a41637bd3931488d
parentda3ecb300dddbbe39e2ff3c2b9a2090b04bc8661
Fixed #6337. Refs #3632 -- Fixed ModelForms subclassing, to the extent that it can be made to work.

This ended up being an almost complete rewrite of ModelForms.__new__, but
should be backwards compatible (although the text of one error message has
changed, which is only user visible and only if you pass in invalid code).

Documentation updated, also.

This started out as a patch from semenov (many thanks!), but by the time all
the problems were hammered out, little of the original was left. Still, it was
a good starting point.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@7112 bcc190cf-cafb-0310-a4f2-bffc1f526a37
django/newforms/forms.py
django/newforms/models.py
docs/modelforms.txt
tests/modeltests/model_forms/models.py