Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[1.0.X] Fixed #11141 -- Corrected a code example in the admin docs. T…

…hanks 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
  • Loading branch information...
commit 5301334f156de4d8d7fbb74cc25c5e0d00eb37cb 1 parent c77f83c
Russell Keith-Magee authored June 18, 2009

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  docs/ref/contrib/admin.txt
2  docs/ref/contrib/admin.txt
@@ -339,7 +339,7 @@ A few special cases to note about ``list_display``:
339 339
               birthday = models.DateField()
340 340
 
341 341
               def born_in_fifties(self):
342  
-                  return self.birthday.strftime('%Y')[:3] == 5
  342
+                  return self.birthday.strftime('%Y')[:3] == '195'
343 343
               born_in_fifties.boolean = True
344 344
 
345 345
           class PersonAdmin(admin.ModelAdmin):

0 notes on commit 5301334

Please sign in to comment.
Something went wrong with that request. Please try again.