Skip to content

Commit

Permalink
Fixed #11141 -- Corrected a code example in the admin docs. Thanks to…
Browse files Browse the repository at this point in the history
… 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
  • Loading branch information
freakboy3742 committed Jun 18, 2009
1 parent d710971 commit 97fb6cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/ref/contrib/admin/index.txt
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 97fb6cf

Please sign in to comment.