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:
Adrian Holovaty 2010-01-10 17:56:52 +00:00
parent 985dcdb4b2
commit 7c0326bcca
1 changed files with 1 additions and 1 deletions

View File

@ -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: