diff options
| author | Russell Keith-Magee <russell@keith-magee.com> | 2009-06-18 14:16:45 +0000 |
|---|---|---|
| committer | Russell Keith-Magee <russell@keith-magee.com> | 2009-06-18 14:16:45 +0000 |
| commit | 5301334f156de4d8d7fbb74cc25c5e0d00eb37cb (patch) | |
| tree | e3bc61f3de228febad9f025316a33e140a4d4162 /docs/ref | |
| parent | c77f83ceaefb39ffac6ff8a24d7189e764458e92 (diff) | |
[1.0.X] Fixed #11141 -- Corrected a code example in the admin docs. Thanks to jodal for the report, and SmileyChris for the patch.
Merge of r11049 from trunk.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@11061 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/contrib/admin.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/ref/contrib/admin.txt b/docs/ref/contrib/admin.txt index 9ac339e99b..29e33b6c27 100644 --- a/docs/ref/contrib/admin.txt +++ b/docs/ref/contrib/admin.txt @@ -339,7 +339,7 @@ A few special cases to note about ``list_display``: birthday = models.DateField() def born_in_fifties(self): - return self.birthday.strftime('%Y')[:3] == 5 + return self.birthday.strftime('%Y')[:3] == '195' born_in_fifties.boolean = True class PersonAdmin(admin.ModelAdmin): |
