Ticket #11141: 11141.diff
File 11141.diff, 551 bytes (added by , 15 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')[:3] == '195' 351 351 born_in_fifties.boolean = True 352 352 353 353 class PersonAdmin(admin.ModelAdmin):