Ticket #11141: django-ticket-11141.diff
File django-ticket-11141.diff, 548 bytes (added by , 16 years ago) |
---|
-
docs/ref/contrib/admin/index.txt
347 347 birthday = models.DateField() 348 348 349 349 def born_in_fifties(self): 350 return self.birthday.strftime('%Y')[ :3] == 5350 return self.birthday.strftime('%Y')[2] == '5' 351 351 born_in_fifties.boolean = True 352 352 353 353 class PersonAdmin(admin.ModelAdmin):