Author: russellm Date: 2009-06-18 08:35:06 -0500 (Thu, 18 Jun 2009) New Revision: 11049
Modified: django/trunk/docs/ref/contrib/admin/index.txt Log: Fixed #11141 -- Corrected a code example in the admin docs. Thanks to jodal for the report, and SmileyChris for the patch. Modified: django/trunk/docs/ref/contrib/admin/index.txt =================================================================== --- django/trunk/docs/ref/contrib/admin/index.txt 2009-06-18 13:34:27 UTC (rev 11048) +++ django/trunk/docs/ref/contrib/admin/index.txt 2009-06-18 13:35:06 UTC (rev 11049) @@ -347,7 +347,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 -~----------~----~----~----~------~----~------~--~---