Fixed #11141 -- Corrected a code example in the admin docs. Thanks to jodal for the report, and SmileyChris for the patch.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@11049 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Russell Keith-Magee 2009-06-18 13:35:06 +00:00
parent d71097111a
commit 97fb6cf2b3
1 changed files with 1 additions and 1 deletions

View File

@ -347,7 +347,7 @@ A few special cases to note about ``list_display``:
birthday = models.DateField() birthday = models.DateField()
def born_in_fifties(self): def born_in_fifties(self):
return self.birthday.strftime('%Y')[:3] == 5 return self.birthday.strftime('%Y')[:3] == '195'
born_in_fifties.boolean = True born_in_fifties.boolean = True
class PersonAdmin(admin.ModelAdmin): class PersonAdmin(admin.ModelAdmin):