mirror of https://github.com/django/django.git
Fixed #12537 -- Fixed error in Model.full_validate(). Thanks, gauss
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12174 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
985dcdb4b2
commit
7c0326bcca
|
@ -803,7 +803,7 @@ class Model(object):
|
|||
if hasattr(e, 'message_dict'):
|
||||
if errors:
|
||||
for k, v in e.message_dict.items():
|
||||
errors.set_default(k, []).extend(v)
|
||||
errors.setdefault(k, []).extend(v)
|
||||
else:
|
||||
errors = e.message_dict
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue