Ticket #11141: django-ticket-11141.diff

File django-ticket-11141.diff, 548 bytes (added by Stein Magnus Jodal, 16 years ago)

Patch which fixes the inconsistency.

  • docs/ref/contrib/admin/index.txt

     
    347347              birthday = models.DateField()
    348348
    349349              def born_in_fifties(self):
    350                   return self.birthday.strftime('%Y')[:3] == 5
     350                  return self.birthday.strftime('%Y')[2] == '5'
    351351              born_in_fifties.boolean = True
    352352
    353353          class PersonAdmin(admin.ModelAdmin):
Back to Top