1
0
mirror of https://github.com/django/django.git synced 2025-10-25 14:46:09 +00:00

Fixed #17413 -- Serialization of form errors along with all metadata.

This commit is contained in:
Loic Bistuer
2013-11-30 02:38:13 +07:00
committed by Tim Graham
parent e2f142030b
commit 3ce9829b61
8 changed files with 129 additions and 20 deletions

View File

@@ -341,7 +341,7 @@ class BaseFormSet(object):
# Give self.clean() a chance to do cross-form validation.
self.clean()
except ValidationError as e:
self._non_form_errors = self.error_class(e.messages)
self._non_form_errors = self.error_class(e.error_list)
def clean(self):
"""