summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorRussell Keith-Magee <russell@keith-magee.com>2009-06-18 13:35:06 +0000
committerRussell Keith-Magee <russell@keith-magee.com>2009-06-18 13:35:06 +0000
commit97fb6cf2b3c1546d1aa08a90a38d146d2b0046ef (patch)
tree4ae7b9a6db4e1af7eef48b839b295fec063afb8d /docs/ref
parentd71097111ae1a5f54c8413be4b9af0c97b8904ef (diff)
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
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/contrib/admin/index.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt
index 6719527d2f..bad7dec390 100644
--- a/docs/ref/contrib/admin/index.txt
+++ b/docs/ref/contrib/admin/index.txt
@@ -347,7 +347,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):