Author: russellm Date: 2009-06-18 09:16:45 -0500 (Thu, 18 Jun 2009) New Revision: 11061
Modified: django/branches/releases/1.0.X/docs/ref/contrib/admin.txt Log: [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. Modified: django/branches/releases/1.0.X/docs/ref/contrib/admin.txt =================================================================== --- django/branches/releases/1.0.X/docs/ref/contrib/admin.txt 2009-06-18 14:16:13 UTC (rev 11060) +++ django/branches/releases/1.0.X/docs/ref/contrib/admin.txt 2009-06-18 14:16:45 UTC (rev 11061) @@ -339,7 +339,7 @@ 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): --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---