소스 검색

Fixed #14493 -- Corrected use of the wrong attribute in the model validation example pseudo-code. Thanks to wogan for the report and patch.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@14300 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Gabriel Hurley 14 년 전
부모
커밋
e9d6662f5e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      docs/ref/models/instances.txt

+ 1 - 1
docs/ref/models/instances.txt

@@ -70,7 +70,7 @@ Example::
     try:
         article.full_clean()
     except ValidationError, e:
-        # Do something based on the errors contained in e.error_dict.
+        # Do something based on the errors contained in e.message_dict.
         # Display them to a user, or handle them programatically.
 
 The first step ``full_clean()`` performs is to clean each individual field.