diff options
| author | Joseph Kocherhans <joseph@jkocherhans.com> | 2008-03-30 23:54:55 +0000 |
|---|---|---|
| committer | Joseph Kocherhans <joseph@jkocherhans.com> | 2008-03-30 23:54:55 +0000 |
| commit | 613c391461cec08786c6ecfdfb287c740d47b1e4 (patch) | |
| tree | 2b155463d88d7c2b63406c4c950889cc5f992920 /tests/regressiontests/forms | |
| parent | b2b6fb6b0704b8c788479c92f34bdababcb25054 (diff) | |
newforms-admin: Fixed #6926. Formset management forms now use the proper prefix. Thanks, msundstr.
git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@7391 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests/regressiontests/forms')
| -rw-r--r-- | tests/regressiontests/forms/formsets.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/regressiontests/forms/formsets.py b/tests/regressiontests/forms/formsets.py index fea8f057da..a0e0215660 100644 --- a/tests/regressiontests/forms/formsets.py +++ b/tests/regressiontests/forms/formsets.py @@ -494,4 +494,21 @@ True >>> for error in formset.non_form_errors(): ... print error + +# Regression test for #6926 ################################################## + +Make sure the management form has the correct prefix. + +>>> formset = FavoriteDrinksFormSet() +>>> formset.management_form.prefix +'form' + +>>> formset = FavoriteDrinksFormSet(data={}) +>>> formset.management_form.prefix +'form' + +>>> formset = FavoriteDrinksFormSet(initial={}) +>>> formset.management_form.prefix +'form' + """ |
