Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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
  • Loading branch information...
commit 7c0326bcca1d08c048db86540f9de78cbc592471 1 parent 985dcdb
@adrianholovaty adrianholovaty authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/db/models/base.py
View
2  django/db/models/base.py
@@ -803,7 +803,7 @@ def full_validate(self, exclude=[]):
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:
Please sign in to comment.
Something went wrong with that request. Please try again.