diff options
| author | Windson yang <wiwindson@outlook.com> | 2017-07-25 06:55:41 +0800 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-07-24 18:55:41 -0400 |
| commit | f32d24652b920135eb6a0f3de74599f03e181731 (patch) | |
| tree | 5bf51d72c1dcd4b6c8ca788fa94f790f951425cd /tests/forms_tests | |
| parent | 28a02259cb938f35607c7a0aa3688a163871b57f (diff) | |
Fixed #28321 -- Prevented FormSet.full_clean() from adding errors from deleted forms.
Diffstat (limited to 'tests/forms_tests')
| -rw-r--r-- | tests/forms_tests/tests/test_formsets.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/forms_tests/tests/test_formsets.py b/tests/forms_tests/tests/test_formsets.py index c1dc8e8560..29f138b2d1 100644 --- a/tests/forms_tests/tests/test_formsets.py +++ b/tests/forms_tests/tests/test_formsets.py @@ -597,6 +597,7 @@ class FormsFormsetTestCase(SimpleTestCase): 'form-MIN_NUM_FORMS': 0, 'form-MAX_NUM_FORMS': 1}) self.assertTrue(p.is_valid()) + self.assertEqual(p._errors, []) self.assertEqual(len(p.deleted_forms), 1) def test_formsets_with_ordering(self): |
