From 7c0326bcca1d08c048db86540f9de78cbc592471 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Sun, 10 Jan 2010 17:56:52 +0000 Subject: [PATCH] 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 --- django/db/models/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/db/models/base.py b/django/db/models/base.py index 06db7cc4e6..7fd0537214 100644 --- a/django/db/models/base.py +++ b/django/db/models/base.py @@ -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: